Skip to content

Commit 1273f87

Browse files
[no-relnote] Update Slack notification action step
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent 8713a17 commit 1273f87

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Diff for: .github/workflows/e2e.yaml

+8-9
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)