From 9745acdc4787538b1f69265ea9df84ae576a236d Mon Sep 17 00:00:00 2001 From: Opeyemi Date: Wed, 6 Mar 2024 14:00:13 +0100 Subject: [PATCH] Update Failure Job (#224) --- .github/workflows/build-unified.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-unified.yml b/.github/workflows/build-unified.yml index 9ab079f..51f7cb9 100644 --- a/.github/workflows/build-unified.yml +++ b/.github/workflows/build-unified.yml @@ -173,15 +173,11 @@ jobs: steps: - name: Check if any job failed if: | - github.ref == 'refs/heads/main' + (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/rc' - || github.ref == 'refs/heads/hotfix-rc' - env: - BUILD_DOCKER_STATUS: ${{ needs.build-docker.result }} - run: | - if [ "$BUILD_DOCKER_STATUS" = "failure" ]; then - exit 1 - fi + || github.ref == 'refs/heads/hotfix-rc') + && contains(needs.*.outcome, 'failure') + run: exit 1 - name: Login to Azure - CI subscription uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0