diff --git a/increment_version.sh b/increment_version.sh index 50e1ef7fd8..973f535e7b 100755 --- a/increment_version.sh +++ b/increment_version.sh @@ -28,6 +28,17 @@ fi 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" +fi + last_tag=`downstream_latest_tag` build_gradle="vector/build.gradle" @@ -186,4 +197,9 @@ else git tag "$new_tag" fi +if ((do_translation_pull)); then + echo "Updating weblate repo..." + translation pull +fi + popd > /dev/null