From b89c420e792d6c5dc0c8d6f17db61adf567934b9 Mon Sep 17 00:00:00 2001 From: Edie Lemoine Date: Wed, 14 Aug 2024 12:34:28 +0200 Subject: [PATCH] ci: add notification on release or push run failure --- .github/workflows/push.yml | 9 +++++++++ .github/workflows/release.yml | 20 +++++++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 149e0833..3fb50a1e 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 095bb658..c919e5ac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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