|
35 | 35 | uses: actions/setup-python@v2
|
36 | 36 | with:
|
37 | 37 | python-version: '3.9'
|
38 |
| - - name: Install dependencies |
39 |
| - run: | |
40 |
| - sudo apt update -y && sudo apt install gettext -y |
41 |
| - pip3 install --upgrade pip |
42 |
| - pip3 install -r requirements.txt -r cpython/Doc/requirements.txt |
43 |
| - - name: Update translations |
44 |
| - run: | |
45 |
| - sh scripts/update.sh |
46 |
| - env: |
47 |
| - TX_TOKEN: ${{ secrets.TX_TOKEN }} |
48 |
| - LANGUAGE: ${{ env.LANGUAGE }} |
49 |
| - - name: Wrap catalog message files |
50 |
| - run: | |
51 |
| - powrap --modified |
52 |
| - - name: Commit and push changes |
53 |
| - if: github.repository == 'python/python-docs-ja' |
54 |
| - run: | |
55 |
| - git config user.name github-actions |
56 |
| - git config user.email github-actions@github.com |
57 |
| - git status |
58 |
| - git add -A |
59 |
| - git diff-index --quiet HEAD || ( git commit -m "Update translations from Transifex" && git push ) |
| 38 | + |
60 | 39 |
|
61 | 40 | merge:
|
62 | 41 | # Merge translations previously updated into older branches to make sure
|
|
88 | 67 | with:
|
89 | 68 | ref: ${{ matrix.branch }}
|
90 | 69 | path: ${{ matrix.branch }}
|
91 |
| - - name: Install dependencies |
92 |
| - run: | |
93 |
| - sudo apt update -y && sudo apt install gettext -y |
94 |
| - pip3 install pomerge powrap |
95 |
| - - name: Merge overwriting on stable release branch |
96 |
| - if: ${{ matrix.overwrite == true }} |
97 |
| - run: | |
98 |
| - pomerge --from ${{ env.CURRENT_BRANCH }}/**/*.po --to ${{ matrix.branch }}/**/*.po |
99 |
| - - name: Merge without overwriting on EOL or security-fix release branch |
100 |
| - if: ${{ matrix.overwrite != true }} |
101 |
| - run: | |
102 |
| - pomerge --no-overwrite --from ${{ env.CURRENT_BRANCH }}/**/*.po --to ${{ matrix.branch }}/**/*.po |
103 |
| - - name: Wrap catalog message files |
104 |
| - run: | |
105 |
| - powrap --modified -C ${{ matrix.branch }} |
106 |
| - - name: Commit and push changes |
107 |
| - if: github.repository == 'rffontenelle/python-docs-pt-br' |
108 |
| - run: | |
109 |
| - cd ${{ matrix.branch }} |
110 |
| - git config user.name github-actions |
111 |
| - git config user.email github-actions@github.com |
112 |
| - git status |
113 |
| - git add -A |
114 |
| - git diff-index --quiet HEAD || ( git commit -m "Merge ${{ env.CURRENT_BRANCH }} into ${{ matrix.branch }}" && git push ) |
115 |
| -
|
116 |
| -
|
0 commit comments