From 45cea40013ec7853792d14ddf55dc05e832e7741 Mon Sep 17 00:00:00 2001 From: Rafael Romero Date: Mon, 17 Jun 2024 16:53:10 +0200 Subject: [PATCH] chore(ci): release-to jobs for both staging and production will notify Slack whenever they fail --- .github/workflows/release-to-prod.yml | 9 +++++++++ .github/workflows/release-to-staging.yml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/release-to-prod.yml b/.github/workflows/release-to-prod.yml index 037676e4f62..bed9fb2b96b 100644 --- a/.github/workflows/release-to-prod.yml +++ b/.github/workflows/release-to-prod.yml @@ -44,3 +44,12 @@ jobs: expect-response-regex: '"status":"success"' timeout: 120000 interval: 3000 + + - name: Report Status + if: failure() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: "failure" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GH_ACTIONS_NOTIFICATIONS }} diff --git a/.github/workflows/release-to-staging.yml b/.github/workflows/release-to-staging.yml index 329268d89d9..e1ed2df1f79 100644 --- a/.github/workflows/release-to-staging.yml +++ b/.github/workflows/release-to-staging.yml @@ -120,3 +120,12 @@ jobs: expect-response-regex: '"status":"success"' timeout: 120000 interval: 3000 + + - name: Report Status + if: failure() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: "failure" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GH_ACTIONS_NOTIFICATIONS }}