Skip to content

Commit f1aba49

Browse files
authored
update.sh: tx-push before changing the tx config (#36)
1 parent f461f21 commit f1aba49

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: scripts/update.sh

+6-5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ cd locales
2525
sphinx-intl create-txconfig
2626
sphinx-intl update-txconfig-resources -p pot -d . --transifex-project-name python-newest
2727

28+
if [ "$CI" = true ]
29+
then
30+
tx push --source --no-interactive --skip
31+
fi
32+
2833
# Update the translation project's .tx/config
2934
cd ../../.. # back to $ROOTDIR
3035
mkdir -p .tx
@@ -33,9 +38,5 @@ sed cpython/Doc/locales/.tx/config \
3338
-e 's|<lang>/LC_MESSAGES/||' \
3439
-e "s|^file_filter|trans.${LANGUAGE}|" \
3540
> .tx/config
36-
37-
if [ "$CI" = true ]
38-
then
39-
tx push --source --no-interactive --skip
40-
fi
41+
4142
tx pull -l ${LANGUAGE} --use-git-timestamps --parallel

0 commit comments

Comments
 (0)