1
0
mirror of synced 2026-01-05 12:07:35 -05:00

Send a Slack notification if Undeploy workflow fails (#21886)

* Reconfigure workflow concurrency groups to avoid conflicts across PRs

* Send a Slack notification if Undeploy workflow fails

* Adjust step names for Slack notifications

* Remove merge conflict
This commit is contained in:
James M. Greene
2021-10-05 11:25:57 -05:00
committed by GitHub
parent fa810d97b4
commit 600e6403d8
3 changed files with 12 additions and 3 deletions

View File

@@ -247,7 +247,7 @@ jobs:
throw error
}
- name: Send Slack notification if workflow fails
- name: Send Slack notification if workflow failed
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
if: ${{ failure() }}
with:

View File

@@ -396,7 +396,7 @@ jobs:
target_url: ACTIONS_RUN_LOG
})
- name: Send Slack notification if workflow fails
- name: Send Slack notification if deployment preparation job failed
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
if: ${{ failure() }}
with:
@@ -587,7 +587,7 @@ jobs:
target_url: ACTIONS_RUN_LOG
})
- name: Send Slack notification if workflow fails
- name: Send Slack notification if deployment job failed
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
if: ${{ failure() }}
with:

View File

@@ -120,3 +120,12 @@ jobs:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
gh pr edit $PR_NUMBER --remove-label "automated-block-deploy"
- name: Send Slack notification if workflow failed
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
if: ${{ failure() }}
with:
channel: ${{ secrets.DOCS_STAGING_DEPLOYMENT_FAILURES_SLACK_CHANNEL_ID }}
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
color: failure
text: Staging undeployment failed for PR ${{ github.event.pull_request.html_url }} at commit ${{ github.head_sha }}. See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}.