Skip to content

Commit

Permalink
add: workflow task to notify discord on failure (microsoft#4743)
Browse files Browse the repository at this point in the history
* add script to cd-publish to notify on failure

* add script to cd-publish to notify on failure

* modified notification message

* update notification message
  • Loading branch information
Ibrahimmaga authored May 20, 2021
1 parent c7db517 commit 7bb7c2d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/cd-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,15 @@ jobs:
- name: Publish NPM packages
env:
NPM_SECRET_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn publish-ci -n $NPM_SECRET_TOKEN
run: yarn publish-ci -n $NPM_SECRET_TOKEN

- name: send notification message on failure
if: failure()
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.WEBHOOK_ID }}
webhook_token: ${{ secrets.WEBHOOK_TOKEN }}
username: "GitHub Automated notification"
message: "FAST publishing failed"


0 comments on commit 7bb7c2d

Please sign in to comment.