@@ -73,11 +73,13 @@ jobs:
73
73
asset_content_type : application/x-deb
74
74
- name : Slack notification of CI status
75
75
uses : rtCamp/action-slack-notify@v2
76
+ if : success() || failure()
76
77
env :
77
78
SLACK_CHANNEL : team_open_source
78
79
SLACK_COLOR : ${{ job.status }}
79
80
SLACK_USERNAME : Github Actions CI bot
80
81
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
82
+ SLACK_MESSAGE : " ${{ job.status == 'success' && 'Ubuntu 20.04 package built and uploaded successfully' || 'Ubuntu 20.04 package build failed' }}"
81
83
82
84
ubuntu-18_04-package :
83
85
runs-on : ubuntu-18.04
@@ -159,11 +161,13 @@ jobs:
159
161
asset_content_type : application/x-deb
160
162
- name : Slack notification of CI status
161
163
uses : rtCamp/action-slack-notify@v2
164
+ if : success() || failure()
162
165
env :
163
166
SLACK_CHANNEL : team_open_source
164
167
SLACK_COLOR : ${{ job.status }}
165
168
SLACK_USERNAME : Github Actions CI bot
166
169
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
170
+ SLACK_MESSAGE : " ${{ job.status == 'success' && 'Ubuntu 18.04 package built and uploaded successfully' || 'Ubuntu 18.04 package build failed' }}"
167
171
168
172
169
173
homebrew-pr :
@@ -310,8 +314,10 @@ jobs:
310
314
docker logout
311
315
- name : Slack notification of CI status
312
316
uses : rtCamp/action-slack-notify@v2
317
+ if : success() || failure()
313
318
env :
314
319
SLACK_CHANNEL : team_open_source
315
320
SLACK_COLOR : ${{ job.status }}
316
321
SLACK_USERNAME : Github Actions CI bot
317
322
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
323
+ SLACK_MESSAGE : " ${{ job.status == 'success' && 'Docker Image built and submitted to DockerHub successfully' || 'Docker Image build failed' }}"
0 commit comments