Skip to content
Snippets Groups Projects
Commit aef0e6d9 authored by Adam G-H's avatar Adam G-H
Browse files

Subtree split job should overwrite the existing tag before pushing

parent 0722b175
No related branches found
Tags 7.x-2.0-alpha2
No related merge requests found
......@@ -249,7 +249,7 @@ subtree split:
- git checkout -b split $COMMIT
- git remote set-url origin $URL
- git remote -v
- if [[ -n "$CI_COMMIT_BRANCH" ]]; then git push origin HEAD:$CI_COMMIT_BRANCH; elif [[ -n "$CI_COMMIT_TAG" ]]; then git tag $CI_COMMIT_TAG && git push origin $CI_COMMIT_TAG; fi
- if [[ -n "$CI_COMMIT_BRANCH" ]]; then git push origin HEAD:$CI_COMMIT_BRANCH; elif [[ -n "$CI_COMMIT_TAG" ]]; then git tag --force $CI_COMMIT_TAG && git push origin $CI_COMMIT_TAG; fi
rules:
# Only do this job if we're pushing to a release branch or tag, and aren't in a fork.
- if: ($CI_COMMIT_BRANCH =~ /^([0-9]+\.)?[0-9]+\.x$/ || $CI_COMMIT_TAG) && $CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment