CI: run build_docs_preview only with the label

This commit is contained in:
Fu Hanxi
2020-11-11 10:27:27 +08:00
committed by bot
parent 0fb65d0bae
commit c600a6d840
2 changed files with 5 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ push_to_github:
deploy_docs_preview:
extends:
- .deploy_docs_template
- .rules:labels:build_docs-slim
- .rules:labels:build_docs-preview
# Override default stage to happen before the post_check
stage: test_deploy
needs:

View File

@@ -134,6 +134,10 @@
- <<: *if-protected-no_label
- <<: *if-label-build_docs
.rules:labels:build_docs-preview:
rules:
- <<: *if-label-build_docs
.rules:labels:weekend_test-only:
rules:
- <<: *if-label-weekend_test