Skip to content

Commit

Permalink
Notify slack when one of the jobs fails
Browse files Browse the repository at this point in the history
  • Loading branch information
Renzo van Hootegem committed Nov 7, 2024
1 parent c1d0528 commit 93e84be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/periodic-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
notify-end:
if: always()
if: ${{ needs.publish.result == 'failure' }}
name: Notify release end
needs: [notify-start, publish]
uses: ho-nl/release-slack-action/.github/workflows/notify-slack-end.yml@main
Expand All @@ -62,4 +62,4 @@ jobs:
result: ${{ needs.publish.result }}
channel: slack-test-messages
message: Periodic build
notifyOnlyOnFailure: true
notifyOnlyOnFailure: false

0 comments on commit 93e84be

Please sign in to comment.