Skip to content

Commit

Permalink
Add steps to notify CI failures on Slack
Browse files Browse the repository at this point in the history
  • Loading branch information
wcalderipe committed Jan 16, 2024
1 parent 54f48e9 commit 485d306
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/authz_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,14 @@ jobs:
# shell: bash
# run: |
# make orchestration/test/e2e

- name: Send Slack notification on failure
if: failure()
uses: 8398a7/action-slack@v3
with:
username: GitHub
author_name: "@app/authz CI failed"
status: ${{ job.status }}
fields: message,commit,author
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
11 changes: 11 additions & 0 deletions .github/workflows/orchestration_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,14 @@ jobs:
shell: bash
run: |
make orchestration/test/e2e
- name: Send Slack notification on failure
if: failure()
uses: 8398a7/action-slack@v3
with:
username: GitHub
author_name: "@app/orchestration CI failed"
status: ${{ job.status }}
fields: message,commit,author
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
12 changes: 12 additions & 0 deletions .github/workflows/transaction_request_intent_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,15 @@ jobs:
shell: bash
run: |
make transaction-request-intent/test/unit
- name: Send Slack notification on failure
if: failure()
uses: 8398a7/action-slack@v3
with:
username: GitHub
author_name: "@narval/transaction-request-intent CI failed"
status: ${{ job.status }}
fields: message,commit,author
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 485d306

Please sign in to comment.