Skip to content

Commit d19afe0

Browse files
[no-relnote] Update GitHub Action slack-github-action for v2.0 API
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
1 parent 4ea15c9 commit d19afe0

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/e2e.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,17 @@ jobs:
7272
path: ./e2e_logs/
7373
retention-days: 15
7474

75-
- name: Send Slack alert notification
76-
id: slack
77-
if: false
75+
- name: Post text to a Slack channel
76+
if: ${{ failure() }}
7877
uses: slackapi/[email protected]
7978
env:
8079
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
8180
SUMMARY_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
8281
with:
83-
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
84-
slack-message: |
85-
:x: On repository ${{ github.repository }} the Workflow *${{ github.workflow }}* has failed.
82+
method: chat.postMessage
83+
token: ${{ secrets.SLACK_BOT_TOKEN }}
84+
payload: |
85+
channel: ${{ secrets.SLACK_CHANNEL_ID }}
86+
text: ":x: On repository ${{ github.repository }} the Workflow *${{ github.workflow }}* has failed.
8687
87-
Details: ${{ env.SUMMARY_URL }}
88+
Details: ${{ env.SUMMARY_URL }}"

0 commit comments

Comments
 (0)