Skip to content

Commit 0229307

Browse files
authored
Merge pull request #7314 from NlightNFotis/fix_windows_notification_slack
[CI] Fix windows slack notification.
2 parents deaa5ee + 2890f74 commit 0229307

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release-packages.yaml

+3-1
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)