From 72d98aa609f56cfd83667ad3c4ecf1e00ce6b6ef Mon Sep 17 00:00:00 2001 From: Angelika Tyborska Date: Sun, 21 Jan 2024 08:45:49 +0100 Subject: [PATCH] Fix 'all tests passing on all versions' --- .github/workflows/test.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 11d8a71..d3f23bb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -97,10 +97,10 @@ jobs: name: All tests passing on all versions needs: [test] steps: - - run: | - result="${{ needs.test.result }}" - if [[ $result == "success" || $result == "skipped" ]]; then - exit 0 - else - exit 1 - fi + - run: exit 1 + # see https://stackoverflow.com/a/67532120/4907315 + if: >- + ${{ + contains(needs.*.result, 'failure') + || contains(needs.*.result, 'cancelled') + }}