Skip to content

Commit

Permalink
move slack alert over
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Dec 13, 2023
1 parent 6788670 commit 03a42d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 59 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/smokeTestDeployManual.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/smokeTestDeployProd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,17 @@ jobs:
uses: ./.github/actions/post-deploy-smoke-test
with:
deploy-env: ${{ env.DEPLOY_ENV }}
slack_alert:
runs-on: ubuntu-latest
if: failure()
needs: [ smoke-test-front-and-back-end ]
steps:
- uses: actions/checkout@v4
- name: Send alert to Slack
uses: ./.github/actions/slack-message
with:
username: ${{ github.actor }}
description: |
:siren-gif: Post-deploy smoke test couldn't verify that the frontend is talking to the backend. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} :siren-gif:
webhook_url: ${{ secrets.SR_ALERTS_SLACK_WEBHOOK_URL }}
user_map: $${{ secrets.SR_ALERTS_GITHUB_SLACK_MAP }}

0 comments on commit 03a42d6

Please sign in to comment.