Don't sync cherry-pick branches over to Github.

This commit is contained in:
Thorsten Eckel 2018-08-23 15:43:09 +02:00
parent 9be7269646
commit 2c86e2cae1

View file

@ -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