File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 3030 -c "node dist/apps/cli/main.js create-a11y-snapshot"
3131 -k 4G -m 4G
3232 --name github-action-create-a11y-snapshot-${{ github.run_id }}
33+
34+ - name : Create issue on failure
35+ if : failure()
36+ uses : actions/github-script@v7
37+ with :
38+ github-token : ${{ secrets.SITE_SCANNING_ISSUE_REPO_TOKEN }}
39+ script : |
40+ await github.rest.issues.create({
41+ owner: 'gsatts-sitescan',
42+ repo: 'site-scanning',
43+ title: `Workflow failed: ${context.workflow}`,
44+ body: `Workflow **${context.workflow}** failed in [${context.repo.owner}/${context.repo.repo}](${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}).\n\nRef: \`${context.ref}\`\nSHA: \`${context.sha}\``
45+ });
Original file line number Diff line number Diff line change 3030 -c "node dist/apps/cli/main.js create-daily-snapshot"
3131 -k 4G -m 4G
3232 --name github-action-create-daily-snapshots-${{ github.run_id }}
33+
34+ - name : Create issue on failure
35+ if : failure()
36+ uses : actions/github-script@v7
37+ with :
38+ github-token : ${{ secrets.SITE_SCANNING_ISSUE_REPO_TOKEN }}
39+ script : |
40+ await github.rest.issues.create({
41+ owner: 'gsatts-sitescan',
42+ repo: 'site-scanning',
43+ title: `Workflow failed: ${context.workflow}`,
44+ body: `Workflow **${context.workflow}** failed in [${context.repo.owner}/${context.repo.repo}](${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}).\n\nRef: \`${context.ref}\`\nSHA: \`${context.sha}\``
45+ });
You can’t perform that action at this time.
0 commit comments