Commit 3fccd823 authored by ashytuna's avatar ashytuna
Browse files

change .gitlab-ci.yml

parent d928d225
Branches
No related merge requests found
Pipeline #3806 passed with stage
in 11 seconds
Showing with 5 additions and 3 deletions
......@@ -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
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment