From ceda00d151f50f94675c00f0b38b589360070cc7 Mon Sep 17 00:00:00 2001 From: per1234 Date: Fri, 14 May 2021 08:03:58 -0700 Subject: [PATCH] Post notification to Slack in the event of an unexpected workflow failure --- .github/workflows/manage-prs.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/manage-prs.yml b/.github/workflows/manage-prs.yml index 71293dd7..5d102b49 100644 --- a/.github/workflows/manage-prs.yml +++ b/.github/workflows/manage-prs.yml @@ -513,3 +513,14 @@ jobs: This error is unrelated to the content of your pull request. A maintainer has been notified and will investigate as soon as possible. + + - name: Slack notification of unexpected failure + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.TEAM_TOOLING_CHANNEL_SLACK_WEBHOOK }} + SLACK_MESSAGE: | + :warning::warning::warning::warning: + WARNING: ${{ github.repository }} ${{ github.workflow }} workflow run had an unexpected failure!!! + :warning::warning::warning::warning: + SLACK_COLOR: danger + MSG_MINIMAL: true