Skip to content

Commit 2e242da

Browse files
Merge pull request #1160 from ArangoGutierrez/slack_botv2
[no-relnote] Update Slack notification action step
2 parents 3b2ac13 + 7993ccd commit 2e242da

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/e2e.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,14 @@ jobs:
7070
retention-days: 15
7171

7272
- name: Send Slack alert notification
73-
id: slack
7473
if: ${{ failure() }}
7574
uses: slackapi/[email protected]
76-
env:
77-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
78-
SUMMARY_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
7975
with:
80-
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
81-
slack-message: |
82-
:x: On repository ${{ github.repository }} the Workflow *${{ github.workflow }}* has failed.
83-
84-
Details: ${{ env.SUMMARY_URL }}
76+
method: chat.postMessage
77+
token: ${{ secrets.SLACK_BOT_TOKEN }}
78+
payload: |
79+
channel: ${{ secrets.SLACK_CHANNEL_ID }}
80+
text: |
81+
:x: On repository ${{ github.repository }}, the Workflow *${{ github.workflow }}* has failed.
82+
83+
Details: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 commit comments

Comments
 (0)