From 540dd5b77871ae2174989696efa4a5ca05e14445 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Fri, 20 Aug 2021 09:45:42 +0200 Subject: [PATCH] increment_version.sh: do not always update translations Change-Id: Ia6257e15e50287eeffe1dcdf4bf9dcc11f8418e9 --- increment_version.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/increment_version.sh b/increment_version.sh index f655fcaaaa..ac6a68897a 100755 --- a/increment_version.sh +++ b/increment_version.sh @@ -30,13 +30,15 @@ pushd "$mydir" > /dev/null do_translation_pull=0 -if git remote get-url weblate > /dev/null; then - echo "Pulling translations..." - translation commit && do_translation_pull=1 || echo "translation tool not found, skipping forced commit" - git fetch weblate - git merge weblate/sc --no-edit -else - echo "WARN: remote weblate not found, not updating translations" +if [ "$release_type" = "normal" ] && [ "$preview" != 1 ]; then + if git remote get-url weblate > /dev/null; then + echo "Pulling translations..." + translation commit && do_translation_pull=1 || echo "translation tool not found, skipping forced commit" + git fetch weblate + git merge weblate/sc --no-edit + else + echo "WARN: remote weblate not found, not updating translations" + fi fi last_tag=`downstream_latest_tag`