mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[CI] Fix git checkout order in after_success_docs_translation.sh (#13467)
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user