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
02d486cd
Commit
02d486cd
authored
3 months ago
by
ashytuna
Browse files
Options
Downloads
Patches
Plain Diff
update yml
parent
6ce8d995
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab/workflows/.auto-merge-ci.yml
+6
-3
.gitlab/workflows/.auto-merge-ci.yml
with
6 additions
and
3 deletions
.gitlab/workflows/.auto-merge-ci.yml
+
6
−
3
View file @
02d486cd
...
...
@@ -3,12 +3,15 @@ auto-merge:
-
auto-merge
stage
:
deploy
script
:
-
foreach ($branch in @('staging/a', 'staging/b')) {
-
$branches = git branch -r --list 'origin/staging/*' | ForEach-Object { $_ -replace 'origin/', '' }
-
$branches = $branches | Where-Object { $_ -ne 'staging/gpu' }
-
Write-Host $branches
-
foreach ($branch in $branches) {
git checkout $branch;
git merge origin/
main
;
git merge origin/
staging/gpu
;
git push https://oauth2:$env:GITLAB_TOKEN@gitlab.onschool.edu.vn/tuna/tech-7260.git $branch;
}
rules
:
-
if
:
$CI_COMMIT_REF_NAME == "
main
" && $CI_COMMIT_MESSAGE =~ /^Merge /
-
if
:
$CI_COMMIT_REF_NAME == "
staging/gpu
" && $CI_COMMIT_MESSAGE =~ /^Merge /
when
:
always
-
when
:
never
\ No newline at end of file
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