From bcd1efd38a0ae17e4debabd2c896eb7be2eb8d55 Mon Sep 17 00:00:00 2001 From: Opeyemi Date: Wed, 6 Mar 2024 14:01:31 +0100 Subject: [PATCH] Update Failure Job (#128) --- .github/workflows/release.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7a92180..c105916 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -154,18 +154,8 @@ jobs: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/rc' || github.ref == 'refs/heads/hotfix' - env: - RELEASE_DOCKER_STATUS: ${{ needs.release-docker.result }} - RELEASE_GITHUB_STATUS: ${{ needs.release-github.result }} - SETUP_STATUS: ${{ needs.setup.result }} - run: | - if [ "$RELEASE_DOCKER_STATUS" = "failure" ]; then - exit 1 - elif [ "$RELEASE_GITHUB_STATUS" = "failure" ]; then - exit 1 - elif [ "$SETUP_STATUS" = "failure" ]; then - exit 1 - fi + && contains(needs.*.result, 'failure') + run: exit 1 - name: Login to Azure - CI subscription uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0