Skip to content

Commit d4a8297

Browse files
authored
Merge pull request #7100 from NlightNFotis/improve_slack_notification_bot
Improve slack notifications on releases for Linux packages
2 parents f680e0f + d536ac3 commit d4a8297

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/regular-release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,4 @@ jobs:
105105
SLACK_COLOR: ${{ job.status }}
106106
SLACK_USERNAME: Github Actions CI bot
107107
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
108+
SLACK_MESSAGE: "${{ job.status == 'success' && 'Successful creation of new CBMC release page' || 'Failed to create new CBMC release page' }}"

.github/workflows/release-packages.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)