From f3ed02f551a3e8f68db7ae6d8139e9feef61afff Mon Sep 17 00:00:00 2001
From: Michael Rapp <michael.rapp90@googlemail.com>
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..f6b316cfe 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: eval "[ "${{ needs.test_release.result }}" == "failure" ]" && exit 1