Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
rylew1 committed Jun 6, 2024
1 parent 58560fc commit f08dc3f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci-frontend-a11y.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,15 @@ jobs:
path: ./frontend/screenshots-output

- name: Post Pa11y results as a PR comment
uses: marocchino/sticky-pull-request-comment@v2
uses: actions/github-script@v6
with:
message: |
## Pa11y Accessibility Test Results
$(cat pa11y-report.md)
script: |
const fs = require('fs');
const pa11yReport = fs.readFileSync('pa11y-report.md', 'utf8');
github.rest.issues.createComment({
...context.repo,
issue_number: context.issue.number,
body: `## Pa11y Accessibility Test Results\n${pa11yReport}`
});
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f08dc3f

Please sign in to comment.