Skip to content

Commit

Permalink
Added slack notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed Apr 17, 2024
1 parent a42b469 commit 1d6cfa9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,29 @@ jobs:
with:
timezone: Europe/Brussels
- run: yarn test

notify-slack-success:
runs-on: ubuntu-latest
needs: [build]
if: success() && github.ref == 'refs/heads/master'
steps:
- uses: voxmedia/github-action-slack-notify-build@v2
with:
status: SUCCESS. Please release, ${{ github.actor }}.
channel: build_status
color: good
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

notify-slack-failure:
runs-on: ubuntu-latest
needs: [build]
if: failure() && github.ref == 'refs/heads/master'
steps:
- uses: voxmedia/github-action-slack-notify-build@v2
with:
status: FAILED
channel: build_status
color: danger
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

0 comments on commit 1d6cfa9

Please sign in to comment.