Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,32 @@ jobs:
echo "Reported status for ${{ github.run_id }} to Airflow $dag_run_id with status ${{env.status}}"
- name: Create failed build issue
uses: jayqi/failed-build-issue-action@1a893bbf43ef1c2a8705e2b115cd4f0fe3c5649b # v1.2.0
if: failure()
if: |-
${{
needs.test-code.result == 'failure'
|| needs.test-backend.result == 'failure'
|| needs.test-administration-e2e.result == 'failure'
|| needs.test-registration-e2e.result == 'failure'
|| needs.test-dashboard-e2e.result == 'failure'
|| needs.test-compliance-e2e.result == 'failure'
|| needs.build-compliance-e2e.result == 'failure'
|| needs.build-dashboard.result == 'failure'
|| needs.zap-owasp.result == 'failure'
|| needs.schemaspy.result == 'failure'
|| needs.trivy.result == 'failure'
|| needs.codeql.result == 'failure'
}}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
label-name: "nightly failed"
title-template: "Failed nightly build and test: {{workflow}}"
body-template: |
GitHub Actions workflow [{{workflow}} #{{runNumber}}](https://github.com/{{repo.owner}}/{{repo.repo}}/actions/runs/{{runId}}) failed.

Alerting @bcgov/cas-developers

Event: {{eventName}}
Branch: [{{refname}}](https://github.com/{{repo.owner}}/{{repo.repo}}/tree/{{refname}})
Commit: [{{sha}}](https://github.com/{{repo.owner}}/{{repo.repo}}/commit/{{sha}})

<sup><i>Created by [jayqi/failed-build-issue-action](https://github.com/jayqi/failed-build-issue-action)</i></sup>
Loading