@@ -146,7 +146,7 @@ jobs:
146146 rows.push(`**${errors.length} error(s)**`, '');
147147 for (const issue of errors) {
148148 rows.push(`- **[${issue.code}]** ${issue.message}`);
149- rows.push(` - Context: \`${issue.context.replace(/`/g, "'").substring(0, 200)}\``);
149+ rows.push(` - Context: \`${issue.context.replace(/\ `/g, "'").substring(0, 200)}\``);
150150 rows.push(` - Selector: \`${issue.selector}\``);
151151 rows.push('');
152152 }
@@ -155,7 +155,7 @@ jobs:
155155 rows.push(`<details><summary><strong>${warnings.length} warning(s)</strong></summary>`, '');
156156 for (const issue of warnings) {
157157 rows.push(`- **[${issue.code}]** ${issue.message}`);
158- rows.push(` - Context: \`${issue.context.replace(/`/g, "'").substring(0, 200)}\``);
158+ rows.push(` - Context: \`${issue.context.replace(/\ `/g, "'").substring(0, 200)}\``);
159159 rows.push(` - Selector: \`${issue.selector}\``);
160160 rows.push('');
161161 }
@@ -195,8 +195,15 @@ jobs:
195195 console.log('Report written.');
196196 EOF
197197
198+ - name : Upload Pa11y report artifact
199+ uses : actions/upload-artifact@v4
200+ with :
201+ name : pa11y-report
202+ path : /tmp/pa11y_report.md
203+ retention-days : 7
204+
198205 - name : Post or update PR comment
199- if : github.event_name == 'pull_request'
206+ if : github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false
200207 uses : actions/github-script@v8
201208 env :
202209 REPORT_BODY_FILE : /tmp/pa11y_report.md
0 commit comments