From 883e2afcb0a86458772a7102a36152331482e249 Mon Sep 17 00:00:00 2001 From: Sean T Allen Date: Fri, 1 Sep 2023 08:11:59 -0400 Subject: [PATCH] Send alert to Zulip if the changelog-bot fails (#61) --- .github/workflows/changelog-bot.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/changelog-bot.yml b/.github/workflows/changelog-bot.yml index 801620f..81121fe 100644 --- a/.github/workflows/changelog-bot.yml +++ b/.github/workflows/changelog-bot.yml @@ -21,3 +21,14 @@ jobs: git_user_email: "ponylang.main@gmail.com" env: GITHUB_TOKEN: ${{ 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.