From cf19a05ced349ee4e1ede1e06ab614ed8c7b172d Mon Sep 17 00:00:00 2001 From: nbhatia823 Date: Tue, 29 Mar 2022 15:12:09 -0700 Subject: [PATCH] Microplane: add Github Action workflow for ci-notify --- .github/workflows/notify-ci-status.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/notify-ci-status.yml diff --git a/.github/workflows/notify-ci-status.yml b/.github/workflows/notify-ci-status.yml new file mode 100644 index 0000000..416559e --- /dev/null +++ b/.github/workflows/notify-ci-status.yml @@ -0,0 +1,15 @@ +name: Notify CI status + +on: status + +jobs: + call-workflow: + if: >- + github.event.branches[0].name == 'master' && + (github.event.state == 'error' || github.event.state == 'failure') + uses: Clever/ci-scripts/.github/workflows/reusable-notify-ci-status.yml@master + secrets: + CIRCLE_CI_INTEGRATIONS_URL: ${{ secrets.CIRCLE_CI_INTEGRATIONS_URL }} + CIRCLE_CI_INTEGRATIONS_USERNAME: ${{ secrets.CIRCLE_CI_INTEGRATIONS_USERNAME }} + CIRCLE_CI_INTEGRATIONS_PASSWORD: ${{ secrets.CIRCLE_CI_INTEGRATIONS_PASSWORD }} + SLACK_BOT_TOKEN: ${{ secrets.DAPPLE_BOT_TOKEN }}