Skip to content

Commit

Permalink
Send a Slack notification if Undeploy workflow fails (github#21886)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
JamesMGreene authored Oct 5, 2021
1 parent fa810d9 commit 600e640
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prod-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/staging-deploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/staging-undeploy-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}.

0 comments on commit 600e640

Please sign in to comment.