-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(actions): Consolidate slack notification logic on test failure (#…
…5533) * Fixes for scheduled e2e (#5532) * fix(actions): Disable deployment only if e2e fails on next or prod * fix(actions): Disable all affected release workflows on e2e failure * fix(actions): Consolidate slack notification logic on test failure * fix(actions): Remove unused environment input The environment-specific SLACK_WEBHOOK_URL secret has been replaced with a repo-specific secret.
- Loading branch information
1 parent
fdf4413
commit 6b55b5c
Showing
5 changed files
with
19 additions
and
83 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: 'Notify Slack on workflow failure' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Notify Slack Action | ||
uses: ravsamhq/notify-slack-action@v2 | ||
if: ${{ always() && github.ref_name == 'next' || github.ref_name == 'main' || github.ref_name == 'prod' }} | ||
with: | ||
footer: "Run: {run_url}\nCommit: {commit_url}" | ||
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>" | ||
notification_title: "{workflow} is now failing!" | ||
notify_when: "failure" | ||
status: "failure" | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_ENG_FEED_GITHUB }} |
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
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
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
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