Crowdin #27
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: Crowdin | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| upload_existing_translations: | |
| description: Upload existing repo translations to Crowdin during migration | |
| required: false | |
| type: boolean | |
| default: false | |
| schedule: | |
| - cron: "17 3 * * *" | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: crowdin-main | |
| cancel-in-progress: true | |
| jobs: | |
| sync: | |
| name: Synchronize translations | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| with: | |
| token: ${{ secrets.GROUNDS_BOT_GITHUB_TOKEN }} | |
| - name: Synchronize with Crowdin | |
| uses: crowdin/github-action@v2 | |
| with: | |
| upload_sources: true | |
| upload_translations: ${{ github.event_name == 'workflow_dispatch' && inputs.upload_existing_translations }} | |
| download_translations: true | |
| create_pull_request: true | |
| localization_branch_name: chore/i18n-update-translations | |
| pull_request_base_branch_name: main | |
| pull_request_title: "chore(i18n): update translations" | |
| pull_request_body: "Automated translation update from Crowdin." | |
| commit_message: "chore(i18n): update translations" | |
| crowdin_branch_name: main | |
| base_url: "https://grounds.api.crowdin.com" | |
| github_user_name: grounds-bot | |
| github_user_email: hi@grounds.gg | |
| env: | |
| GH_TOKEN: ${{ secrets.GROUNDS_BOT_GITHUB_TOKEN }} | |
| CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
| CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |