From 12d30a23cf7935e672479adb36d1e3ad082eeacf Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Arango Gutierrez Date: Mon, 19 Aug 2024 13:41:59 +0200 Subject: [PATCH] Report GHA e2e status Signed-off-by: Carlos Eduardo Arango Gutierrez --- .github/workflows/e2e.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 5f72b130..156655d8 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -74,3 +74,17 @@ jobs: name: e2e-test-logs path: ./e2e_logs/ retention-days: 15 + + - name: Send Slack alert notification + id: slack + if: ${{ failure() }} + uses: slackapi/slack-github-action@v1.26.0 + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + SUMMARY_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} + with: + channel-id: ${{ secrets.SLACK_CHANNEL_ID }} + slack-message: | + :red_target: On repository ${{ github.repository }} the Workflow *${{ github.workflow }}* has failed. + + Details: ${{ env.SUMMARY_URL }}