We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30dd36d + 88287c6 commit 58f2bd6Copy full SHA for 58f2bd6
.github/workflows/notify-ci-status.yml
@@ -1,12 +1,17 @@
1
name: Notify CI status
2
3
-on: status
+on:
4
+ check_suite:
5
+ types: [completed]
6
+ status:
7
8
jobs:
9
call-workflow:
10
if: >-
- github.event.branches[0].name == 'master' &&
- (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')
15
uses: Clever/ci-scripts/.github/workflows/reusable-notify-ci-status.yml@master
16
secrets:
17
CIRCLE_CI_INTEGRATIONS_URL: ${{ secrets.CIRCLE_CI_INTEGRATIONS_URL }}
0 commit comments