Working on issue not syncing to github correctly.
This commit is contained in:
parent
551846a1a5
commit
a53a6fccee
1 changed files with 13 additions and 3 deletions
|
@ -10,7 +10,17 @@ if echo $CI_BUILD_REF_NAME | grep private; then
|
|||
fi
|
||||
|
||||
git checkout $CI_BUILD_REF_NAME
|
||||
if [ "$CI_BUILD_REF_NAME" != "$CI_BUILD_TAG" ]; then
|
||||
git pull --rebase origin $CI_BUILD_REF_NAME
|
||||
if git remote | grep github > /dev/null; then git remote rm github; fi
|
||||
fi
|
||||
|
||||
if git remote | grep github > /dev/null; then
|
||||
git remote rm github
|
||||
fi
|
||||
git remote add github $GITHUB_DEST
|
||||
|
||||
if [ "$CI_BUILD_REF_NAME" != "$CI_BUILD_TAG" ]; then
|
||||
git push github $CI_BUILD_REF_NAME
|
||||
else
|
||||
git push github --tags
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue