File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed
Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 9898 env :
9999 TX_TOKEN : ${{ secrets.TX_TOKEN }}
100100
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+
101109 - name : powrap
102110 if : steps.pull.outcome == 'success'
103111 run : |
Original file line number Diff line number Diff line change 1+ pomerge == 0.1.4
12potodo == 0.21.3
23powrap == 1.0.2
34sphinx-intl == 2.3.0
Original file line number Diff line number Diff line change 2020git status -s | grep ' ^ D ' | cut -d' ' -f3 | xargs -r git rm
2121
2222# 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
2424
2525# Add currently untracked PO files, and update other helper files
2626untracked_files=$( git ls-files -o --exclude-standard * .po ** /* .po)
You can’t perform that action at this time.
0 commit comments