build: fix missing string tokens #166
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "🌐 Synchronize Localization" | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - 'common/src/commonMain/composeResources/values/*.xml' | |
| - 'listing/google/base/*.html' | |
| - 'listing/google/base/*.xml' | |
| # Configuration. | |
| - 'crowdin.yml' | |
| permissions: | |
| contents: read | |
| jobs: | |
| sync-localization: | |
| name: Synchronize Crowdin Translations | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| persist-credentials: false | |
| - run: pip install -r .github/update_localization_contributors.requirements.txt | |
| - uses: crowdin/github-action@8868a33591d21088edfc398968173a3b98d51706 | |
| with: | |
| upload_sources: true | |
| # We only want to upload the sources, nothing else is | |
| # supported. | |
| upload_translations: false | |
| download_translations: true | |
| config: 'crowdin.yml' | |
| create_pull_request: false | |
| push_translations: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | |
| CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
| CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | |
| # https://github.com/crowdin/github-action/issues/229 | |
| - name: Fix permissions Crowdin created | |
| run: | | |
| sudo chmod -R 666 common/src/commonMain/composeResources/values-*/*.xml | |
| - name: "Update library" | |
| run: | | |
| python .github/update_localization.py | |
| - name: "Update contributors" | |
| run: | | |
| python .github/update_localization_contributors.py ${{ secrets.CROWDIN_PERSONAL_TOKEN }} ${{ secrets.CROWDIN_PROJECT_ID }} | |
| - uses: ./.github/actions/github_submit_pr | |
| with: | |
| github-token: ${{ secrets.PERSONAL_TOKEN }} | |
| commit-message: "Update localization library" | |
| commit-branch: localization_action |