Merge pull request #71 from Clever/INFRANG-6435

notify CI failure
This commit is contained in:
Taylor Sutton 2024-09-19 07:23:19 -07:00 committed by GitHub
commit f78d1c6b9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,12 +1,17 @@
name: Notify CI status
on: status
on:
check_suite:
types: [completed]
status:
jobs:
call-workflow:
if: >-
github.event.branches[0].name == 'master' &&
(github.event.state == 'error' || github.event.state == 'failure')
(github.event.branches[0].name == github.event.repository.default_branch &&
(github.event.state == 'error' || github.event.state == 'failure')) ||
(github.event.check_suite.head_branch == github.event.repository.default_branch &&
github.event.check_suite.conclusion != 'success')
uses: Clever/ci-scripts/.github/workflows/reusable-notify-ci-status.yml@master
secrets:
CIRCLE_CI_INTEGRATIONS_URL: ${{ secrets.CIRCLE_CI_INTEGRATIONS_URL }}