Skip to content

Commit

Permalink
Let us know when the build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilkybarkid committed Jun 20, 2024
1 parent b3a03d6 commit 2f9100a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,20 @@ jobs:
run: flyctl deploy --image ${{ needs.push.outputs.image }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

notify:
name: 'Notify of failure'
runs-on: ubuntu-22.04
timeout-minutes: 30
needs:
- deploy
if: failure() && github.ref == 'refs/heads/main'

steps:
- uses: voxmedia/[email protected]
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}
with:
channel_id: G015ZLXJA9W
status: FAILED
color: danger

0 comments on commit 2f9100a

Please sign in to comment.