From 976aa449e71fda6c926e004d2af1366c2b5a3574 Mon Sep 17 00:00:00 2001 From: Michael Rapp Date: Mon, 18 Nov 2024 23:59:13 +0100 Subject: [PATCH] Let workflow fail if any job fails. --- .github/workflows/test_publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_publish.yml b/.github/workflows/test_publish.yml index 33171d4b9..501b147e4 100644 --- a/.github/workflows/test_publish.yml +++ b/.github/workflows/test_publish.yml @@ -61,5 +61,5 @@ jobs: name: Test publishing packages succeeded runs-on: ubuntu-latest steps: - - name: Print outputs - run: echo "${{ needs.test_release.result }}" + - name: Check for success + run: [ "$(echo ${{ needs.test_release.result }}" == "failure" ] && exit 1