From ab9c7499ed610234417d4cc3366bfb17ae8bd853 Mon Sep 17 00:00:00 2001 From: Keith Battocchi Date: Tue, 21 Mar 2023 00:34:48 -0400 Subject: [PATCH] Fix status checks in CI workflow Signed-off-by: Keith Battocchi --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82ba25bc6..0e67498c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -224,7 +224,7 @@ jobs: steps: - run: exit 1 name: At least one check failed or was cancelled - if: ${{ !(success()) }} + if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} - run: exit 0 name: All checks passed - if: ${{ success() }} + if: ${{ !(contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) }}