From 3fd83be6b7d60c6c08b2c041d9070fa11053b69f Mon Sep 17 00:00:00 2001 From: paolino Date: Wed, 29 Nov 2023 11:52:59 +0000 Subject: [PATCH] Add success slack reporting --- .github/workflows/e2e-docker.yml | 13 +++++++++++-- .github/workflows/e2e-linux.yml | 9 +++++++++ .github/workflows/e2e-windows.yml | 9 +++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-docker.yml b/.github/workflows/e2e-docker.yml index 84b5ac7dfa7..0fafc410ae4 100644 --- a/.github/workflows/e2e-docker.yml +++ b/.github/workflows/e2e-docker.yml @@ -134,7 +134,7 @@ jobs: with: path: test/e2e/state/wallet_db/preprod key: wallet-db3-${{ runner.os }}-preprod - + - name: Slack Notification on failure if: failure() uses: rtCamp/action-slack-notify@v2 @@ -145,4 +145,13 @@ jobs: SLACK_MESSAGE: | *GitHub Action: ${{ github.workflow }} failed!* *Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} - SLACK_COLOR: '#FF0000' \ No newline at end of file + SLACK_COLOR: '#FF0000' + + - name: Slack Notification on success + if: success() + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_ICON_EMOJI: ':rocket:' + SLACK_USERNAME: 'GitHub Action' + SLACK_COLOR: '#00FF00' \ No newline at end of file diff --git a/.github/workflows/e2e-linux.yml b/.github/workflows/e2e-linux.yml index b7effe2aa74..9b795959471 100644 --- a/.github/workflows/e2e-linux.yml +++ b/.github/workflows/e2e-linux.yml @@ -118,3 +118,12 @@ jobs: *GitHub Action: ${{ github.workflow }} failed!* *Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} SLACK_COLOR: '#FF0000' + + - name: Slack Notification on success + if: success() + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_ICON_EMOJI: ':rocket:' + SLACK_USERNAME: 'GitHub Action' + SLACK_COLOR: '#00FF00' \ No newline at end of file diff --git a/.github/workflows/e2e-windows.yml b/.github/workflows/e2e-windows.yml index 5336fee9473..ab3f8538f4d 100644 --- a/.github/workflows/e2e-windows.yml +++ b/.github/workflows/e2e-windows.yml @@ -158,3 +158,12 @@ jobs: *GitHub Action: ${{ github.workflow }} failed!* *Job Link:* ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} SLACK_COLOR: '#FF0000' + + - name: Slack Notification on success + if: success() + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} + SLACK_ICON_EMOJI: ':rocket:' + SLACK_USERNAME: 'GitHub Action' + SLACK_COLOR: '#00FF00' \ No newline at end of file