Skip to content

Commit 6a5ac3c

Browse files
authored
Merge translations from newer branch
1 parent a4bb92c commit 6a5ac3c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/sync.yml

+8
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ jobs:
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: |

0 commit comments

Comments
 (0)