From c63a2d1470cb5a09ef7782ee3636d047e25b9565 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 Signed-off-by: star1327p --- .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')) }}