From 532be5634d24754f04d8f9226cd1801bc36d2e06 Mon Sep 17 00:00:00 2001 From: TiejunZhou <50469179+TiejunMS@users.noreply.github.com> Date: Fri, 24 Nov 2023 07:32:23 +0000 Subject: [PATCH] Restrict deploy run condition --- .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