diff --git a/.github/workflows/prod-build-deploy.yml b/.github/workflows/prod-build-deploy.yml index c1483d4ed7..e79204d34e 100644 --- a/.github/workflows/prod-build-deploy.yml +++ b/.github/workflows/prod-build-deploy.yml @@ -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: diff --git a/.github/workflows/staging-deploy-pr.yml b/.github/workflows/staging-deploy-pr.yml index d7080e369f..db611d66e9 100644 --- a/.github/workflows/staging-deploy-pr.yml +++ b/.github/workflows/staging-deploy-pr.yml @@ -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: diff --git a/.github/workflows/staging-undeploy-pr.yml b/.github/workflows/staging-undeploy-pr.yml index 44411873ff..ec73e41bba 100644 --- a/.github/workflows/staging-undeploy-pr.yml +++ b/.github/workflows/staging-undeploy-pr.yml @@ -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 }}.