Skip to content

Commit

Permalink
Fixed release flow + notify Slack in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mroloux committed May 29, 2024
1 parent 23ab45d commit c2a643b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
with:
fetch-depth: 0
- uses: fregante/setup-git-user@v2
- uses: actions/setup-node@v4
with:
node-version: 20
- id: install-zx
run: npm i -g zx
- id: install-semver-tool
Expand All @@ -44,3 +47,15 @@ jobs:
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
notify-slack-failure:
runs-on: ubuntu-latest
needs: [ release ]
if: failure()
steps:
- uses: voxmedia/github-action-slack-notify-build@v1
with:
status: FAILED
channel: build_status
color: danger
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }}

0 comments on commit c2a643b

Please sign in to comment.