increment_version.sh: do not always update translations

Change-Id: Ia6257e15e50287eeffe1dcdf4bf9dcc11f8418e9
This commit is contained in:
SpiritCroc 2021-08-20 09:45:42 +02:00
parent 2f4d379ed0
commit 540dd5b778

View file

@ -30,13 +30,15 @@ pushd "$mydir" > /dev/null
do_translation_pull=0
if git remote get-url weblate > /dev/null; then
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
else
echo "WARN: remote weblate not found, not updating translations"
fi
fi
last_tag=`downstream_latest_tag`