Skip to content

Commit

Permalink
Send alert to Zulip on release-notes-bot failure (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen authored Sep 1, 2023
1 parent faa9b2f commit 2d19347
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- '**'
paths-ignore:
- .release-notes/next-release.md
- .release-notes/[0-9]+.[0-9]+.[0-9]+.md
- .release-notes/\d+.\d+.\d+.md

jobs:
release-notes:
Expand All @@ -22,3 +22,14 @@ jobs:
git_user_email: "[email protected]"
env:
API_CREDENTIALS: ${{ secrets.GITHUB_TOKEN }}
- name: Send alert on failure
if: ${{ failure() }}
uses: zulip/github-actions-zulip/send-message@b62d5a0e48a4d984ea4fce5dd65ba691963d4db4
with:
api-key: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_API_KEY }}
email: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_EMAIL }}
organization-url: 'https://ponylang.zulipchat.com/'
to: notifications
type: stream
topic: ${{ github.repository }} scheduled job failure
content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed.

0 comments on commit 2d19347

Please sign in to comment.