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 6ae18cafe2.
This commit is contained in:
TiejunZhou
2023-11-24 15:41:34 +08:00
committed by GitHub
parent 5f9c713c48
commit e420e2fa02

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