Don't sync cherry-pick branches over to Github.
This commit is contained in:
parent
9be7269646
commit
2c86e2cae1
1 changed files with 5 additions and 0 deletions
|
@ -9,6 +9,11 @@ if echo $CI_BUILD_REF_NAME | grep private; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if echo $CI_BUILD_REF_NAME | grep cherry-pick-; then
|
||||||
|
echo 'sync no cherry-pick branches'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
git checkout $CI_BUILD_REF_NAME
|
git checkout $CI_BUILD_REF_NAME
|
||||||
if [ "$CI_BUILD_REF_NAME" != "$CI_BUILD_TAG" ]; then
|
if [ "$CI_BUILD_REF_NAME" != "$CI_BUILD_TAG" ]; then
|
||||||
git pull --rebase origin $CI_BUILD_REF_NAME
|
git pull --rebase origin $CI_BUILD_REF_NAME
|
||||||
|
|
Loading…
Reference in a new issue