diff --git a/.github/workflows/nightlies.yml b/.github/workflows/nightlies.yml index c7a9292a8f..1238877140 100644 --- a/.github/workflows/nightlies.yml +++ b/.github/workflows/nightlies.yml @@ -43,3 +43,14 @@ jobs: CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} TRIPLE_VENDOR: ${{ matrix.triple-vendor }} TRIPLE_OS: ${{ matrix.triple-os }} + - name: Send alert on failure + if: ${{ failure() }} + uses: zulip/github-actions-zulip@35d7ad8e98444f894dcfe1d4e17332581d28ebeb + 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.