Crowdin Download Translations & Create PR #5
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 Download Translations & Create PR' | |
| on: | |
| workflow_dispatch: | |
| repository_dispatch: | |
| types: [crowdin_file_translated] # Crowdin側で設定するイベントタイプ | |
| jobs: | |
| download_translations: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Download Translations from Crowdin | |
| uses: crowdin/github-action@v2 | |
| with: | |
| upload_sources: false | |
| download_translations: true | |
| download_sources: false | |
| push_translations: true | |
| download_translations_args: '--all' | |
| env: | |
| CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
| CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |