-
-
Notifications
You must be signed in to change notification settings - Fork 415
36 lines (33 loc) · 1.31 KB
/
cirrus-failures.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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@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.event.check_run.details_url }} failed.