Skip to content

Commit 6463390

Browse files
authored
Merge pull request #926 from ArangoGutierrez/slack_botv2
[no-relnote] Update Slack notification action step
2 parents 8713a17 + 1273f87 commit 6463390

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
@@ -85,15 +85,14 @@ jobs:
8585
make -f tests/e2e/Makefile test
8686
8787
- name: Send Slack alert notification
88-
id: slack
8988
if: ${{ failure() }}
9089
uses: slackapi/[email protected]
91-
env:
92-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
93-
SUMMARY_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
9490
with:
95-
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
96-
slack-message: |
97-
:x: On repository ${{ github.repository }} the Workflow *${{ github.workflow }}* has failed.
98-
99-
Details: ${{ env.SUMMARY_URL }}
91+
method: chat.postMessage
92+
token: ${{ secrets.SLACK_BOT_TOKEN }}
93+
payload: |
94+
channel: ${{ secrets.SLACK_CHANNEL_ID }}
95+
text: |
96+
:x: On repository ${{ github.repository }}, the Workflow *${{ github.workflow }}* has failed.
97+
98+
Details: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 commit comments

Comments
 (0)