From 941333d30ca2ca567a0cdb12e8ba0dc50455b2d4 Mon Sep 17 00:00:00 2001 From: djorgensendk <32477395+djorgensendk@users.noreply.github.com> Date: Fri, 28 Oct 2022 14:23:45 +0200 Subject: [PATCH] Fix allow_merge (#559) --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dffc313f..d98b4327 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -127,8 +127,14 @@ jobs: dotnet_ci_test_unittests ] if: | - always() && - !contains(needs.*.result, 'failure') && - !contains(needs.*.result, 'cancelled') + always() steps: - - run: echo "${{ toJSON(needs) }}" + - name: Verify if merge is allowed + run: | + echo "${{ toJSON(needs) }}" + + if [[ ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} = true ]]; then + echo "Failed" + exit 1 + fi +