From 8ab1a901666de42b74f46db6d50af578ee585ba1 Mon Sep 17 00:00:00 2001 From: Tanmay Sardesai Date: Wed, 18 Sep 2024 13:04:08 -0400 Subject: [PATCH] notify CI failure --- .github/workflows/notify-ci-status.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/notify-ci-status.yml b/.github/workflows/notify-ci-status.yml index 416559e..bc7a68b 100644 --- a/.github/workflows/notify-ci-status.yml +++ b/.github/workflows/notify-ci-status.yml @@ -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 }}