Skip to content

Commit

Permalink
ci: add more ways to trigger upload cache
Browse files Browse the repository at this point in the history
  • Loading branch information
hfudev committed Feb 22, 2023
1 parent 25cb9b3 commit f74c81a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitlab/ci/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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-/'

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

Expand Down

0 comments on commit f74c81a

Please sign in to comment.