Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
tuna
TECH-7260
Commits
3fccd823
Commit
3fccd823
authored
3 months ago
by
ashytuna
Browse files
Options
Downloads
Patches
Plain Diff
change .gitlab-ci.yml
parent
d928d225
Branches
Branches containing commit
No related merge requests found
Pipeline
#3806
passed with stage
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-3
.gitlab-ci.yml
with
5 additions
and
3 deletions
.gitlab-ci.yml
+
5
−
3
View file @
3fccd823
...
...
@@ -3,14 +3,16 @@ merge-to-branches:
-
auto-merge
stage
:
deploy
script
:
-
git config --global user.email "tuna@onschool.edu.vn"
-
git config --global user.name "tuna"
-
git config user.email "tuna@onschool.edu.vn"
-
git config user.name "tuna"
-
git fetch --all
-
$MERGE_COMMIT = git log -1 --pretty=%B | Select-String -Pattern 'merge'
-
if ($MERGE_COMMIT) {
foreach ($branch in @('staging/a', 'staging/b')) {
git checkout $branch
git merge main
git merge
origin/
main
git push https://oauth2:$env:GITLAB_TOKEN@gitlab.com/tuna/tech-7260.git $branch
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets