From 8b3dbdab7fd401de6e08004dc1d94447cd1047bf Mon Sep 17 00:00:00 2001 From: Danilo Pianini Date: Thu, 16 Nov 2023 12:33:48 +0100 Subject: [PATCH] ci: add a success-check job --- .github/real-workflows/test.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/real-workflows/test.yml b/.github/real-workflows/test.yml index cecc00c..f7d2e3c 100644 --- a/.github/real-workflows/test.yml +++ b/.github/real-workflows/test.yml @@ -44,3 +44,16 @@ jobs: run: npm install - name: Semantic Release run: npx semantic-release + success: + runs-on: ubuntu-22.04 + needs: + - test + - release + if: >- + always() && ( + contains(join(needs.*.result, ','), 'failure') + || !contains(join(needs.*.result, ','), 'cancelled') + ) + steps: + - name: Verify that there were no failures + run: ${{ !contains(join(needs.*.result, ','), 'failure') }}