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 2129c48 commit 4a0024c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ jobs:
needs: test
uses: ./.github/workflows/rebase-prs.yml
secrets: inherit

notify-on-failure:
needs:
- test
- rebase-prs
if: always() && contains(needs.*.result, 'failure')
uses: myparcelnl/actions/.github/workflows/notify-on-failure.yml@v4
secrets: inherit
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,13 @@ jobs:
private-key: ${{ secrets.MYPARCEL_APP_PRIVATE_KEY }}
repository: ${{ matrix.repo }}
event-type: 'pdk-update'

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

0 comments on commit 4a0024c

Please sign in to comment.