Skip to content

Commit

Permalink
Fix-slack-notify (#3931)
Browse files Browse the repository at this point in the history
  • Loading branch information
gyfchong authored Aug 1, 2023
1 parent c505513 commit 4d9f0c1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
12 changes: 0 additions & 12 deletions .github/payload/slack-notify-release.json

This file was deleted.

26 changes: 14 additions & 12 deletions .github/workflows/changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,21 @@ jobs:
publish: yarn ci:publish
- name: Notify Slack (success)
if: steps.changesets.outputs.published == 'true'
uses: slackapi/slack-github-action@v1.24.0
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
# https://github.com/marketplace/actions/post-to-slack
uses: pcolby/post-to-slack@v1
with:
channel-id: "C02NUQ27G56"
payload-file-path: "../payload/slack-notify-release.json"
url: ${{ secrets.SLACK_WEBHOOK_URL }}
channel: "#wol_kaizen"
username: "Release"
text: Complete
iconEmoji: ":squid:"
- name: Notify Slack (failure)
if: steps.changesets.outputs.published == 'false'
uses: slackapi/slack-github-action@v1.24.0
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
# https://github.com/marketplace/actions/post-to-slack
uses: pcolby/post-to-slack@v1
with:
channel-id: "C02NUQ27G56"
payload-file-path: "../payload/slack-notify-release.json"
url: ${{ secrets.SLACK_WEBHOOK_URL }}
channel: "#wol_kaizen"
username: "Release"
text: Something went wrong
iconEmoji: ":squid:"

0 comments on commit 4d9f0c1

Please sign in to comment.