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 be80a79 commit 0644fc0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,13 @@ jobs:
- test
- analyse
secrets: inherit

notify-on-failure:
needs:
- test
- analyse
- build
- 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 @@ -43,3 +43,13 @@ jobs:
- release
uses: ./.github/workflows/rebase-prs.yml
secrets: inherit

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

0 comments on commit 0644fc0

Please sign in to comment.