|
53 | 53 | - name: Wrap catalog message files
|
54 | 54 | run: |
|
55 | 55 | powrap --modified
|
| 56 | + git diff |
56 | 57 | - name: Commit and push changes
|
57 | 58 | if: github.repository == 'python/python-docs-ja'
|
58 | 59 | run: |
|
|
63 | 64 | git diff-index --quiet HEAD || ( git commit -m "Update translations from Transifex" && git push )
|
64 | 65 |
|
65 | 66 | merge:
|
66 |
| - # Merge translations previously updated into older branches to make sure |
67 |
| - # older versions of Python Docs gets translated as well. |
68 |
| - name: merge into ${{ matrix.branch }} |
69 | 67 | needs: [update]
|
70 |
| - strategy: |
71 |
| - matrix: |
72 |
| - branch: [ "3.13", "3.12", "3.11" ] |
73 |
| - |
74 |
| - runs-on: ubuntu-latest |
75 |
| - steps: |
76 |
| - - name: Check out source branch (${{ env.CPYTHON_BRANCH }}) |
77 |
| - uses: actions/checkout@v4 |
78 |
| - with: |
79 |
| - path: ${{ env.CPYTHON_BRANCH }} |
80 |
| - |
81 |
| - - name: Check out target branch (${{ matrix.branch }}) |
82 |
| - uses: actions/checkout@v4 |
83 |
| - with: |
84 |
| - ref: ${{ matrix.branch }} |
85 |
| - path: ${{ matrix.branch }} |
86 |
| - |
87 |
| - - name: Set up Python |
88 |
| - uses: actions/setup-python@v5 |
89 |
| - with: |
90 |
| - cache: 'pip' |
91 |
| - cache-dependency-path: '**/requirements*.txt' |
92 |
| - |
93 |
| - - name: Install dependencies |
94 |
| - run: | |
95 |
| - sudo apt-get update -y && sudo apt-get install gettext -y |
96 |
| - pip install pomerge powrap |
97 |
| -
|
98 |
| - - name: Merge overwriting on stable release branch |
99 |
| - run: | |
100 |
| - pomerge --from "${{ env.CPYTHON_BRANCH }}"/**/*.po --to "${{ matrix.branch }}"/**/*.po |
101 |
| -
|
102 |
| - - name: Wrap catalog message files |
103 |
| - run: | |
104 |
| - powrap --modified -C "${{ matrix.branch }}" |
105 |
| -
|
106 |
| - - name: Commit and push changes |
107 |
| - if: github.repository == 'python/python-docs-ja' |
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.CPYTHON_BRANCH }} into ${{ matrix.branch }}" && git push ) |
115 |
| -
|
| 68 | + uses: ./.github/workflows/merge.yml |
0 commit comments