ci: add more ways to trigger upload cache

pull/10856/head
Fu Hanxi 2023-02-22 08:58:45 +08:00
rodzic 25cb9b3f0e
commit f74c81a71b
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -331,6 +331,9 @@
.if-label-build-only: &if-label-build-only
if: '$CI_JOB_STAGE == "target_test" && $CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*For Maintainers: Only Build Tests(?:,[^,\n\r]+)*$/i'
.if-label-upload_cache: &if-label-upload_cache
if: '$CI_MERGE_REQUEST_LABELS =~ /^(?:[^,\n\r]+,)*upload_cache(?:,[^,\n\r]+)*$/i'
.if-revert-branch: &if-revert-branch
if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME =~ /^revert-/'
@ -356,11 +359,16 @@
.rules:patterns:python-cache:
rules:
- *if-schedule
- <<: *if-label-upload_cache
when: manual
- <<: *if-dev-push
changes: *patterns-python-cache
.rules:patterns:submodule:
rules:
- <<: *if-label-upload_cache
when: manual
- <<: *if-dev-push
changes: *patterns-submodule