From e420e2fa02844aeb9fbbe56ebd6b060ccc9bdaa7 Mon Sep 17 00:00:00 2001 From: TiejunZhou <50469179+TiejunMS@users.noreply.github.com> Date: Fri, 24 Nov 2023 15:41:34 +0800 Subject: [PATCH] Restrict deploy run condition (#325) * Restrict deploy run condition * Fail the job for testing purpose * Revert "Fail the job for testing purpose" This reverts commit 6ae18cafe285f07443137b85493f69f95e738c3d. --- .github/workflows/regression_template.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/regression_template.yml b/.github/workflows/regression_template.yml index 9d60e0de..ce124fd8 100644 --- a/.github/workflows/regression_template.yml +++ b/.github/workflows/regression_template.yml @@ -144,7 +144,7 @@ jobs: deploy_code_coverage: runs-on: ubuntu-latest - if: ${{ (github.event_name == 'push') && !inputs.skip_deploy && always() }} + if: ${{ (github.event_name == 'push') && !inputs.skip_deploy && !failure() && !cancelled() }} needs: run_tests environment: name: github-pages