Skip to content

Commit 711b38f

Browse files
committed
chore: report github actions failure on zulip
only the master branch
1 parent 93fa9c8 commit 711b38f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,18 @@ jobs:
460460
with:
461461
script: |
462462
core.setFailed('Some jobs failed')
463+
- if: ${{ contains(needs.*.result, 'failure') && github.repository == 'leanprover/lean4' && (github.ref == 'master' || github.ref = 'joachim/zulip-integration') }}
464+
uses: zulip/github-actions-zulip/send-message@v1
465+
with:
466+
api-key: ${{ secrets.ZULIP_BOT_KEY }}
467+
email: "github-actions-bot@lean-fro.zulip.org"
468+
organization-url: "https://lean-fro.zulip.org"
469+
to: "infrastructure"
470+
topic: "Github actions"
471+
type: "stream"
472+
content: |
473+
A build of ${{ github.ref }} triggered by ${{ github.event_name }} [failed](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).
474+
463475
464476
# This job creates releases from tags
465477
# (whether they are "unofficial" releases for experiments, or official releases when the tag is "v" followed by a semver string.)

0 commit comments

Comments
 (0)