Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal_cms-3494355
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal_cms-3494355
Commits
aef0e6d9
Commit
aef0e6d9
authored
1 month ago
by
Adam G-H
Browse files
Options
Downloads
Patches
Plain Diff
Subtree split job should overwrite the existing tag before pushing
parent
0722b175
No related branches found
Branches containing commit
Tags
7.x-2.0-alpha2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
with
1 addition
and
1 deletion
.gitlab-ci.yml
+
1
−
1
View file @
aef0e6d9
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment