We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cea81ee + 511874f commit 6eb1fe8Copy full SHA for 6eb1fe8
.github/workflows/deploy-failover.prod.yml
@@ -41,3 +41,14 @@ jobs:
41
vars_file: vars-prod-failover.yml
42
config_file: config-failover.yml
43
hpa_file: hpa-prod-failover.yml
44
+ notify-slack:
45
+ runs-on: ubuntu-latest
46
+ needs: deploy
47
+ if: failure()
48
+ steps:
49
+ - name: Notify Slack of failure
50
+ uses: slackapi/slack-github-action@v1
51
+ with:
52
+ slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
53
+ channel: '#team-navno-failover-prod'
54
+ text: '🚨 Workflow *Deploy to prod-failover* failed! Check the logs: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
0 commit comments