[CI] Fix git checkout order in after_success_docs_translation.sh (#13467)

This commit is contained in:
Frans de Jonge
2025-03-27 14:33:14 +01:00
committed by GitHub
parent 38695119ca
commit 5b8e26f7b8

View File

@@ -7,9 +7,9 @@ source "${CI_DIR}/common.sh"
set +e
echo -e "\\n${ANSI_GREEN}Updating translation source file."
pushd l10n && git checkout master && popd || exit 1
make pot
pushd l10n && {
git checkout -f master
# If only one line was added and removed, it was just the timestamp.
git diff --numstat | grep "1[[:space:]]1[[:space:]]templates/koreader.pot" && echo -e "\\n${ANSI_GREEN}No updated translations found." || {
git -c user.name="KOReader build bot" -c user.email="non-reply@koreader.rocks" \