Restrict deploy run condition

This commit is contained in:
TiejunZhou
2023-11-24 07:32:23 +00:00
parent 5f9c713c48
commit 532be5634d

View File

@@ -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