Skip to content

Commit

Permalink
Send alert to Zulip on release-notes-bot failure (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen authored Sep 1, 2023
1 parent 7236a23 commit 28ef56d
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: "ponylang.main@gmail.com"
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 }} unattended job failure
content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed.

0 comments on commit 28ef56d

Please sign in to comment.