Skip to content

Commit

Permalink
Merge pull request #1160 from ArangoGutierrez/slack_botv2
Browse files Browse the repository at this point in the history
[no-relnote] Update Slack notification action step
  • Loading branch information
ArangoGutierrez authored Feb 13, 2025
2 parents 3b2ac13 + 7993ccd commit 2e242da
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,14 @@ jobs:
retention-days: 15

- name: Send Slack alert notification
id: slack
if: ${{ failure() }}
uses: slackapi/slack-github-action@v2.0.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: |
:x: On repository ${{ github.repository }} the Workflow *${{ github.workflow }}* has failed.
Details: ${{ env.SUMMARY_URL }}
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
payload: |
channel: ${{ secrets.SLACK_CHANNEL_ID }}
text: |
:x: On repository ${{ github.repository }}, the Workflow *${{ github.workflow }}* has failed.
Details: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 comments on commit 2e242da

Please # to comment.