@@ -73,11 +73,13 @@ jobs:
7373 asset_content_type : application/x-deb
7474 - name : Slack notification of CI status
7575 uses : rtCamp/action-slack-notify@v2
76+ if : success() || failure()
7677 env :
7778 SLACK_CHANNEL : team_open_source
7879 SLACK_COLOR : ${{ job.status }}
7980 SLACK_USERNAME : Github Actions CI bot
8081 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' }}"
8183
8284 ubuntu-18_04-package :
8385 runs-on : ubuntu-18.04
@@ -159,11 +161,13 @@ jobs:
159161 asset_content_type : application/x-deb
160162 - name : Slack notification of CI status
161163 uses : rtCamp/action-slack-notify@v2
164+ if : success() || failure()
162165 env :
163166 SLACK_CHANNEL : team_open_source
164167 SLACK_COLOR : ${{ job.status }}
165168 SLACK_USERNAME : Github Actions CI bot
166169 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' }}"
167171
168172
169173 homebrew-pr :
@@ -310,8 +314,10 @@ jobs:
310314 docker logout
311315 - name : Slack notification of CI status
312316 uses : rtCamp/action-slack-notify@v2
317+ if : success() || failure()
313318 env :
314319 SLACK_CHANNEL : team_open_source
315320 SLACK_COLOR : ${{ job.status }}
316321 SLACK_USERNAME : Github Actions CI bot
317322 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