Skip to content

Commit a326820

Browse files
committed
Add a slack notification for the open source team in the release and release artifacts actions
1 parent 78efc2c commit a326820

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/regular-release.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,10 @@ jobs:
9898
container.
9999
draft: false
100100
prerelease: false
101+
- name: Slack notification of successful release
102+
uses: rtCamp/action-slack-notify@v2
103+
env:
104+
SLACK_CHANNEL: team_open_source
105+
SLACK_COLOR: ${{ job.status }}
106+
SLACK_USERNAME: Github Actions CI bot
107+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/release-packages.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ jobs:
7171
asset_path: ${{ steps.create_packages.outputs.deb_package }}
7272
asset_name: ${{ steps.create_packages.outputs.deb_package_name }}
7373
asset_content_type: application/x-deb
74+
- name: Slack notification of CI status
75+
uses: rtCamp/action-slack-notify@v2
76+
env:
77+
SLACK_CHANNEL: team_open_source
78+
SLACK_COLOR: ${{ job.status }}
79+
SLACK_USERNAME: Github Actions CI bot
80+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
7481

7582
ubuntu-18_04-package:
7683
runs-on: ubuntu-18.04
@@ -141,6 +148,13 @@ jobs:
141148
asset_path: ${{ steps.create_packages.outputs.deb_package }}
142149
asset_name: ${{ steps.create_packages.outputs.deb_package_name }}
143150
asset_content_type: application/x-deb
151+
- name: Slack notification of CI status
152+
uses: rtCamp/action-slack-notify@v2
153+
env:
154+
SLACK_CHANNEL: team_open_source
155+
SLACK_COLOR: ${{ job.status }}
156+
SLACK_USERNAME: Github Actions CI bot
157+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
144158

145159

146160
homebrew-pr:
@@ -160,6 +174,13 @@ jobs:
160174
brew bump-formula-pr --tag "$RELEASE_TAG" --revision "$GITHUB_SHA" cbmc
161175
env:
162176
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.DB_CI_CPROVER_ACCESS_TOKEN }}
177+
- name: Slack notification of CI status
178+
uses: rtCamp/action-slack-notify@v2
179+
env:
180+
SLACK_CHANNEL: team_open_source
181+
SLACK_COLOR: ${{ job.status }}
182+
SLACK_USERNAME: Github Actions CI bot
183+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
163184

164185
windows-msi-package:
165186
runs-on: windows-2019
@@ -248,6 +269,13 @@ jobs:
248269
asset_path: ${{ steps.create_packages.outputs.msi_installer }}
249270
asset_name: ${{ steps.create_packages.outputs.msi_name }}
250271
asset_content_type: application/x-msi
272+
- name: Slack notification of CI status
273+
uses: rtCamp/action-slack-notify@v2
274+
env:
275+
SLACK_CHANNEL: team_open_source
276+
SLACK_COLOR: ${{ job.status }}
277+
SLACK_USERNAME: Github Actions CI bot
278+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
251279

252280
push-docker-image-dockerhub:
253281
runs-on: ubuntu-20.04
@@ -271,3 +299,10 @@ jobs:
271299
# For security reasons remove stored login credentials from
272300
# configuration file they are stored at by docker login.
273301
docker logout
302+
- name: Slack notification of CI status
303+
uses: rtCamp/action-slack-notify@v2
304+
env:
305+
SLACK_CHANNEL: team_open_source
306+
SLACK_COLOR: ${{ job.status }}
307+
SLACK_USERNAME: Github Actions CI bot
308+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)