Skip to content

Commit

Permalink
ci: add notification on release or push run failure
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Aug 14, 2024
1 parent c1f6e22 commit b89c420
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ jobs:
- build
uses: ./.github/workflows/rebase-prs.yml
secrets: inherit

notify-on-failure:
needs:
- test
- build
- rebase-prs
if: always() && contains(needs.*.result, 'failure')
uses: myparcelnl/actions/.github/workflows/notify-on-failure.yml@v4
secrets: inherit
20 changes: 15 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,12 @@ jobs:
path: apps/sandbox/dist

- name: 'Release'
working-directory: apps/delivery-options
# language=bash
run: |
npx semantic-release
uses: myparcelnl/actions/semantic-release@v4
env:
GITHUB_TOKEN: ${{ steps.credentials.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
working-directory: apps/delivery-options
token: ${{ steps.credentials.outputs.token }}

deploy:
needs: release
Expand All @@ -101,3 +100,14 @@ jobs:
needs: release
uses: ./.github/workflows/rebase-prs.yml
secrets: inherit

notify-on-failure:
needs:
- test
- build
- release
- deploy
- rebase-prs
if: always() && contains(needs.*.result, 'failure')
uses: myparcelnl/actions/.github/workflows/notify-on-failure.yml@v4
secrets: inherit

0 comments on commit b89c420

Please sign in to comment.