Skip to content

Commit 58f2bd6

Browse files
authored
Merge pull request #35 from Clever/INFRANG-6435
notify CI failure
2 parents 30dd36d + 88287c6 commit 58f2bd6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/notify-ci-status.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
name: Notify CI status
22

3-
on: status
3+
on:
4+
check_suite:
5+
types: [completed]
6+
status:
47

58
jobs:
69
call-workflow:
710
if: >-
8-
github.event.branches[0].name == 'master' &&
9-
(github.event.state == 'error' || github.event.state == 'failure')
11+
(github.event.branches[0].name == github.event.repository.default_branch &&
12+
(github.event.state == 'error' || github.event.state == 'failure')) ||
13+
(github.event.check_suite.head_branch == github.event.repository.default_branch &&
14+
github.event.check_suite.conclusion != 'success')
1015
uses: Clever/ci-scripts/.github/workflows/reusable-notify-ci-status.yml@master
1116
secrets:
1217
CIRCLE_CI_INTEGRATIONS_URL: ${{ secrets.CIRCLE_CI_INTEGRATIONS_URL }}

0 commit comments

Comments
 (0)