Download translations #94
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: Download translations | |
| on: | |
| schedule: | |
| - cron: "30 2 * * *" | |
| workflow_dispatch: | |
| jobs: | |
| synchronize-with-crowdin: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: crowdin action | |
| uses: crowdin/github-action@v2 | |
| with: | |
| upload_sources: false | |
| download_translations: true | |
| push_translations: true | |
| commit_message: "chore: update translations from Crowdin" | |
| create_pull_request: true | |
| pull_request_title: "chore: update translations from Crowdin" | |
| pull_request_labels: "translation" | |
| env: | |
| CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
| CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |