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 enqueue-scans"
3131 -k 2G -m 2G
3232 --name github-action-enqueue-scans-${{ 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 2626 --command "node dist/apps/cli/main.js ingest"
2727 -k 2G -m 2G
2828 --name github-action-ingest-${{ github.run_id }}
29+
30+ - name : Create issue on failure
31+ if : failure()
32+ uses : actions/github-script@v7
33+ with :
34+ github-token : ${{ secrets.SITE_SCANNING_ISSUE_REPO_TOKEN }}
35+ script : |
36+ await github.rest.issues.create({
37+ owner: 'gsatts-sitescan',
38+ repo: 'site-scanning',
39+ title: `Workflow failed: ${context.workflow}`,
40+ 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}\``
41+ });
You can’t perform that action at this time.
0 commit comments