Skip to content

Commit

Permalink
Merge pull request #492 from Clever/INFRANG-6435
Browse files Browse the repository at this point in the history
notify CI failure
  • Loading branch information
andruwm authored Sep 19, 2024
2 parents 8bf9e8c + 9bdb4c6 commit 96b0408
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/notify-ci-status.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down

0 comments on commit 96b0408

Please sign in to comment.