Cirrus CI failures #49093
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cirrus CI failures | |
on: | |
check_run: | |
type: ['completed'] | |
jobs: | |
log-event: | |
name : Log event | |
if: github.event.check_run.app.name == 'Cirrus CI' && github.event.check_run.conclusion == 'failure' && toJson(github.event.check_run.pull_requests) == '[]' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Log event | |
run: echo "$EVENT" | |
env: | |
EVENT: ${{ toJson(github.event) }} | |
send-failure-notification-to-zulip: | |
name: Send Cirrus CI failure to Zulip | |
if: github.event.check_run.app.name == 'Cirrus CI' && github.event.check_run.conclusion == 'failure' && toJson(github.event.check_run.pull_requests) == '[]' && github.event.sender.login != 'ghost' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Log event | |
run: echo "$EVENT" | |
env: | |
EVENT: ${{ toJson(github.event) }} | |
- name: Send | |
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.event.check_run.details_url }} failed. |