Skip to content

Commit

Permalink
chore(ci): Notify internal Slack channel when CI breaks on master (#5788
Browse files Browse the repository at this point in the history
)

Uses the official Slack github action with the recommended "workflow"
flow. @ludamad, @charlielye, and @PhilWindle are admins of the workflow
in Slack.
  • Loading branch information
spalladino authored Apr 17, 2024
1 parent 71b60f3 commit 70b3f3f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,18 @@ jobs:
needs: [e2e, bb-native-tests, bb-bench]
steps:
- run: echo Pull request merging now allowed.

notify:
needs: [e2e, bb-native-tests, bb-bench]
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' && failure() }}
steps:
- name: Send notification to aztec3-ci channel if workflow failed on master
uses: slackapi/slack-github-action@v1.25.0
with:
payload: |
{
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFY_WORKFLOW_TRIGGER_URL }}

0 comments on commit 70b3f3f

Please sign in to comment.