File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
cd $( dirname $0 ) /../cpython/Doc/locale/${PYDOC_LANGUAGE} /LC_MESSAGES
9
9
10
+ extra_files=" .tx/config stats.json potodo.md"
11
+
10
12
set +u
11
13
if [ -n " ${CI+x} " ]; then
12
14
git config user.email " github-actions[bot]@users.noreply.github.com"
@@ -21,7 +23,7 @@ git status -s | grep '^ D ' | cut -d' ' -f3 | xargs -r git rm -v
21
23
git diff -I' ^"POT-Creation-Date: ' --numstat * .po ** /* .po | cut -f3 | xargs -r git add -v
22
24
23
25
# Add currently untracked PO files, and update other helper files
24
- git add -v $( git ls-files -o --exclude-standard * .po ** /* .po) .tx/config stats.json potodo.md
26
+ git add -v $( git ls-files -o --exclude-standard * .po ** /* .po)
25
27
26
28
# Commit only if there is any cached file
27
- git diff-index --cached --quiet HEAD || git commit -vm " Update translations"
29
+ git diff-index --cached --quiet HEAD || { git add -v $extra_files ; git commit -vm " Update translations" ; }
You can’t perform that action at this time.
0 commit comments