File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff 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/slack-github-action@v2.0.0
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 }}"
You can’t perform that action at this time.
0 commit comments