forked from platypush/platypush
[CI/CD] Be explicit about the origin in sync-stable-branch.
This commit is contained in:
parent
0537815721
commit
e23664b5e7
1 changed files with 6 additions and 2 deletions
|
@ -4,11 +4,15 @@
|
|||
. .drone/macros/configure-ssh.sh
|
||||
. .drone/macros/configure-gpg.sh
|
||||
|
||||
# Git configuration
|
||||
git remote rm origin
|
||||
git remote add origin git@git.platypush.tech:platypush/platypush.git
|
||||
|
||||
# Merge and push to the `stable` branch
|
||||
git checkout stable || git checkout -b stable
|
||||
git rebase master
|
||||
git rebase origin master
|
||||
git push -u origin stable
|
||||
git checkout master
|
||||
git checkout origin master
|
||||
|
||||
# Restore the original git configuration
|
||||
mv "$TMP_GIT_CONF" "$GIT_CONF"
|
||||
|
|
Loading…
Reference in a new issue