1212
1313 strategy :
1414 matrix :
15- lang : [ru, ko, ja, zh-CN ]
15+ lang : [ru]
1616
1717 steps :
1818 - name : Checkout code
@@ -28,28 +28,22 @@ jobs:
2828 - name : Install Crowdin CLI
2929 run : npm install -g @crowdin/cli
3030
31- - name : Download completed translations
32- env :
33- CROWDIN_PERSONAL_TOKEN : ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
34- run : |
35- crowdin download --export-only-approved --branch main --config crowdin-oss.yml --language=${{ matrix.lang }}
36-
3731 - name : Configure Git
3832 run : |
3933 git config user.name "github-actions[bot]"
4034 git config user.email "github-actions[bot]@users.noreply.github.com"
4135
42- - name : Create translations branch
43- run : |
44- git checkout -B l10n-release-candidate-${{ matrix.lang }}
45-
4636 - name : Commit and push translations
37+ env :
38+ CROWDIN_PERSONAL_TOKEN : ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
4739 run : |
40+ git stash --include-untracked
41+ git checkout -b l10n-release-candidate-${{ matrix.lang }}
42+ git pull --rebase origin l10n-release-candidate-${{ matrix.lang }} || true
43+ crowdin download --export-only-approved --branch main --config crowdin-oss.yml --language=${{ matrix.lang }}
4844 git add i18n/${{ matrix.lang }}
49- git diff --quiet --cached || ( \
50- git commit -m "chore: update ${{ matrix.lang }} translations" && \
51- git push -u origin l10n-release-candidate-${{ matrix.lang }} \
52- )
45+ git commit -m "chore: update ${{ matrix.lang }} translations"
46+ git push -u origin l10n-release-candidate-${{ matrix.lang }}
5347
5448 - name : Create Pull Request
5549 uses : peter-evans/create-pull-request@v5
0 commit comments