-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Notify when GHA workflow fails on master #4791
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4791 +/- ##
==========================================
- Coverage 54.68% 54.66% -0.03%
==========================================
Files 414 414
Lines 53550 53550
==========================================
- Hits 29286 29273 -13
- Misses 21836 21849 +13
Partials 2428 2428
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
run: | | ||
curl -X POST --data-urlencode "payload={\"text\": \"Benchmark workflow failed. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}" $SLACK_WEBHOOK | ||
if: ${{ failure() && (contains(github.base_ref, 'rel/nightly') || contains(github.base_ref, 'rel/beta') || contains(github.base_ref, 'rel/stable') || contains(github.base_ref, 'master')) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this runs only on master. Also we can use https://www.ravsam.in/blog/send-slack-notification-when-github-actions-fails/ github action if we want.
Accompanies #4789 to add Slack notifications for failed Github Action (GHA) workflows in
master
. Like #4789, the rationale is to be aware of a failed build in our development branch as soon as possible.Notes:
master
.