File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 98
98
env :
99
99
TX_TOKEN : ${{ secrets.TX_TOKEN }}
100
100
101
+ - name : Merge translations from newer branch
102
+ if : inputs.tx_project != 'python-newest' # python-newest doesn't have a newer branch
103
+ run : |
104
+ newer_branch=${PYDOC_VERSION%%.*}.$((${PYDOC_VERSION##*.}+1))
105
+ git clone --depth 1 --single-branch --branch $newer_branch https://github.com/python/python-docs-pt-br ${newer_branch}-dir
106
+ pomerge --from ./${newer_branch}-dir/**/*.po --to ./${{ env.LANGUAGE_DIR }}/**/*.po
107
+ rm -rf ./${newer_branch}-dir
108
+
101
109
- name : powrap
102
110
if : steps.pull.outcome == 'success'
103
111
run : |
Original file line number Diff line number Diff line change
1
+ pomerge == 0.1.4
1
2
potodo == 0.21.3
2
3
powrap == 1.0.2
3
4
sphinx-intl == 2.3.0
Original file line number Diff line number Diff line change 20
20
git status -s | grep ' ^ D ' | cut -d' ' -f3 | xargs -r git rm
21
21
22
22
# Add only updates that do not consist only of 'POT-Creation-Date' header change
23
- git diff -I' ^"POT-Creation-Date: ' --numstat * .po ** /* .po | cut -f3 | xargs -r git add -v
23
+ git diff -I' ^"POT-Creation-Date: ' -I ' ^"Language: pt_BR ' - -numstat * .po ** /* .po | cut -f3 | xargs -r git add -v
24
24
25
25
# Add currently untracked PO files, and update other helper files
26
26
untracked_files=$( git ls-files -o --exclude-standard * .po ** /* .po)
You can’t perform that action at this time.
0 commit comments