Skip to content

Commit

Permalink
Merge pull request #8 from cultureamp/fix-slack-notify
Browse files Browse the repository at this point in the history
update slack notify
  • Loading branch information
gyfchong authored Aug 18, 2023
2 parents 629339d + 7a4dd9b commit 0e6b723
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,23 @@ jobs:
- name: Push git tags
if: steps.changesets.outputs.published == 'true'
run: git push --follow-tags
slack-notify:
notify:
runs-on: ubuntu-latest
needs: version
steps:
- name: Notify Slack (success)
- name: Publish successful
if: needs.version.outputs.published == 'true'
# https://github.com/marketplace/actions/post-to-slack
uses: pcolby/post-to-slack@v1
uses: slackapi/[email protected]
with:
url: ${{ secrets.SLACK_WEBHOOK_URL }}
channel: "#wol_kaizen"
username: "Release"
text: Complete
iconEmoji: ":squid:"
- name: Notify Slack (failure)
channel-id: "C02NUQ27G56"
slack-message: "Legacy Packages have been published"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
- name: Publish failed
if: needs.version.outputs.published == 'false'
# https://github.com/marketplace/actions/post-to-slack
uses: pcolby/post-to-slack@v1
uses: slackapi/[email protected]
with:
url: ${{ secrets.SLACK_WEBHOOK_URL }}
channel: "#wol_kaizen"
username: "Release"
text: Something went wrong
iconEmoji: ":squid:"
channel-id: "C02NUQ27G56"
slack-message: "Legacy Publish failed"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 0e6b723

Please sign in to comment.