diff options
author | Jordan Petridis <jordan@centricular.com> | 2023-04-19 22:40:08 +0300 |
---|---|---|
committer | GStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2023-04-25 10:17:30 +0000 |
commit | fc8472f499a7b24fc1b46a1dfdc4d1b7e1480e2a (patch) | |
tree | 3c14849d05842b5b05b93c46b34a2167988c83b2 /.gitlab-ci.yml | |
parent | 55d6c229bcf892783aa62dca6c83cce1144ca3e7 (diff) |
ci: Don't fetch tags when fetching branches
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1164>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8261396c..1ccf4509 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,10 +27,14 @@ workflow: # https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' + variables: + GIT_FETCH_EXTRA_FLAGS: '--no-tags' - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push" when: never - if: '$CI_COMMIT_TAG' - if: '$CI_COMMIT_BRANCH' + variables: + GIT_FETCH_EXTRA_FLAGS: '--no-tags' # # Global CI policy |