Skip to content

Commit

Permalink
Merge pull request #21966 from Devazc/next
Browse files Browse the repository at this point in the history
Build: Add discord notification to cron job action
  • Loading branch information
ndelangen authored Feb 1, 2024
2 parents 5e5019d + ccfa1f6 commit 3b0c99b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/cron-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ jobs:
use-quiet-mode: 'yes'
# output full HTTP info for broken links
use-verbose-mode: 'yes'
config-file: '.github/workflows/markdown-link-check-config.json'
config-file: '.github/workflows/markdown-link-check-config.json'
# Notify to Discord channel on failure
- name: Send Discord Notification
if: failure() # Only run this step if previous steps failed
run: |
curl -H "Content-Type: application/json" -X POST -d '{"content":"The Markdown Links Check workflow has failed in the repository: [storybook]"}' ${{ secrets.DISCORD_MONITORING_URL }}

0 comments on commit 3b0c99b

Please sign in to comment.