From 73bba023747a45d82d9ae744aeceda4c20e257c4 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Thu, 23 Sep 2021 12:11:52 +0530 Subject: [PATCH] Package release even if tests fail (#7746) --- .github/workflows/test-build-docker-image.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-build-docker-image.yml b/.github/workflows/test-build-docker-image.yml index f32d320660..d830461abe 100644 --- a/.github/workflows/test-build-docker-image.yml +++ b/.github/workflows/test-build-docker-image.yml @@ -507,8 +507,9 @@ jobs: defaults: run: working-directory: app/client - # Run this job only if all the previous steps are a success and the reference if the release or master branch - if: (success() && github.ref == 'refs/heads/release') || github.ref == 'refs/heads/master' + + # Run this job irrespective of tests failing, if this is the release branch; or only if the tests pass, if this is the master branch. + if: (success() && github.ref == 'refs/heads/master') || github.ref == 'refs/heads/release' steps: # Checkout the code