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:
72
72
path : ./e2e_logs/
73
73
retention-days : 15
74
74
75
- - name : Send Slack alert notification
76
- id : slack
77
- if : false
75
+ - name : Post text to a Slack channel
76
+ if : ${{ failure() }}
78
77
79
78
env :
80
79
SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
81
80
SUMMARY_URL : https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
82
81
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.
86
87
87
- Details: ${{ env.SUMMARY_URL }}
88
+ Details: ${{ env.SUMMARY_URL }}"
You can’t perform that action at this time.
0 commit comments