From bf8404e50b181f5701c66cebedd1ae3037671bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=AA=E7=8C=AB?= Date: Fri, 12 Aug 2022 09:53:17 +0900 Subject: [PATCH 1/2] Fix if condition --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d43ebe..fa3334d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,4 +108,4 @@ jobs: env: needs: ${{ toJSON(needs) }} - run: exit 1 - if: (failure() == false && cancelled() == false) == false # success() || skipped() + if: contains(needs.*.result, 'failure') == false && contains(needs.*.result, 'cancelled') == false From 7d5a39e58527aec801a7ac493306bb1aeb01e87a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=AA=E7=8C=AB?= Date: Fri, 12 Aug 2022 10:16:03 +0900 Subject: [PATCH 2/2] Fix if condition --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa3334d..f54c05d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,4 +108,4 @@ jobs: env: needs: ${{ toJSON(needs) }} - run: exit 1 - if: contains(needs.*.result, 'failure') == false && contains(needs.*.result, 'cancelled') == false + if: (contains(needs.*.result, 'failure') == false && contains(needs.*.result, 'cancelled') == false) == false # success or skipped