From 485d3068c892dc3aaba93770b47a0339b5ec5c0f Mon Sep 17 00:00:00 2001 From: William Calderipe Date: Tue, 16 Jan 2024 13:05:07 +0100 Subject: [PATCH] Add steps to notify CI failures on Slack --- .github/workflows/authz_ci.yml | 11 +++++++++++ .github/workflows/orchestration_ci.yml | 11 +++++++++++ .github/workflows/transaction_request_intent_ci.yml | 12 ++++++++++++ 3 files changed, 34 insertions(+) diff --git a/.github/workflows/authz_ci.yml b/.github/workflows/authz_ci.yml index 5133247a8..cb86e2f71 100644 --- a/.github/workflows/authz_ci.yml +++ b/.github/workflows/authz_ci.yml @@ -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 }} diff --git a/.github/workflows/orchestration_ci.yml b/.github/workflows/orchestration_ci.yml index 7488a9874..3f54257f2 100644 --- a/.github/workflows/orchestration_ci.yml +++ b/.github/workflows/orchestration_ci.yml @@ -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 }} diff --git a/.github/workflows/transaction_request_intent_ci.yml b/.github/workflows/transaction_request_intent_ci.yml index 370653b2d..615d24afc 100644 --- a/.github/workflows/transaction_request_intent_ci.yml +++ b/.github/workflows/transaction_request_intent_ci.yml @@ -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 }} +