forked from platypush/platypush
[CI/CD] Do a git fetch beofre checkout/rebase in sync-stable-branch.
This commit is contained in:
parent
ee3933dc77
commit
86674ddc28
1 changed files with 3 additions and 2 deletions
|
@ -7,12 +7,13 @@
|
||||||
# Git configuration
|
# Git configuration
|
||||||
git remote rm origin
|
git remote rm origin
|
||||||
git remote add origin git@git.platypush.tech:platypush/platypush.git
|
git remote add origin git@git.platypush.tech:platypush/platypush.git
|
||||||
|
git fetch origin
|
||||||
|
|
||||||
# Merge and push to the `stable` branch
|
# Merge and push to the `stable` branch
|
||||||
git checkout stable || git checkout -b stable
|
git checkout stable || git checkout -b stable
|
||||||
git rebase origin master
|
git rebase master
|
||||||
git push -u origin stable
|
git push -u origin stable
|
||||||
git checkout origin master
|
git checkout master
|
||||||
|
|
||||||
# Restore the original git configuration
|
# Restore the original git configuration
|
||||||
mv "$TMP_GIT_CONF" "$GIT_CONF"
|
mv "$TMP_GIT_CONF" "$GIT_CONF"
|
||||||
|
|
Loading…
Reference in a new issue