From f08dc3fcfe9a0a8c5e7ea86b7e3db7aa1ab754d5 Mon Sep 17 00:00:00 2001 From: Ryan Lewis Date: Thu, 6 Jun 2024 13:08:03 -0700 Subject: [PATCH] try again --- .github/workflows/ci-frontend-a11y.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-frontend-a11y.yml b/.github/workflows/ci-frontend-a11y.yml index 17477d6cd..b7fea61a9 100644 --- a/.github/workflows/ci-frontend-a11y.yml +++ b/.github/workflows/ci-frontend-a11y.yml @@ -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 }}