Skip to content

Commit 2890f74

Browse files
committed
[CI] Fix windows slack notification.
We currently have a small `go` utility to produce some notifications on Diffblue's Open Source team channel on Slack, so that we keep track of the release and any builds for associated artifacts. The notifications work on Linux, but they required running the `go` program directly on MacOS, because the action is bootstrapping an Alpine Linux container which for some reason is incompatible with the MacOS and Windows runners. This commit follows the same recipe (running the go binary directly) to allow us to keep track of the Windows `.msi` installer package build.
1 parent 70b7cf7 commit 2890f74

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-packages.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,14 @@ jobs:
288288
asset_name: ${{ steps.create_packages.outputs.msi_name }}
289289
asset_content_type: application/x-msi
290290
- name: Slack notification of CI status
291-
uses: rtCamp/action-slack-notify@v2
291+
if: success() || failure()
292292
env:
293293
SLACK_CHANNEL: team_open_source
294294
SLACK_COLOR: ${{ job.status }}
295295
SLACK_USERNAME: Github Actions CI bot
296296
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
297+
SLACK_MESSAGE: "${{ job.status == 'success' && 'Windows package built and uploaded successfully' || 'Windows package build failed' }}"
298+
run: go run scripts/slack_notification_action.go
297299

298300
push-docker-image-dockerhub:
299301
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)