Skip to content

Commit

Permalink
chore(ci): release-to jobs for both staging and production will notif…
Browse files Browse the repository at this point in the history
…y Slack whenever they fail (#9850)
  • Loading branch information
rafaelromcar-parabol authored Jun 18, 2024
1 parent f9ca53b commit 4604716
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release-to-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
9 changes: 9 additions & 0 deletions .github/workflows/release-to-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 4604716

Please sign in to comment.