Crowdin Download Approved Translations Action #97
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 Approved Translations Action | |
| on: | |
| schedule: | |
| - cron: '0 */12 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| download-translations: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 3 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| # Use PAT to ensure that the commit later can trigger status check workflows | |
| token: ${{ secrets.METAMASKBOT_CROWDIN_TOKEN }} | |
| - name: crowdin download approved translations | |
| uses: crowdin/github-action@a3160b9e5a9e00739392c23da5e580c6cabe526d | |
| with: | |
| upload_sources: false | |
| upload_translations: false # disabled to prevent translations overwriting Blends translations | |
| download_translations: true # created separate action to pull down completed translations | |
| export_only_approved: true | |
| pull_request_title: 'chore: New Crowdin Translations by GitHub Action' | |
| github_user_name: metamaskbot | |
| github_user_email: metamaskbot@users.noreply.github.com | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.METAMASKBOT_CROWDIN_TOKEN }} | |
| GITHUB_ACTOR: metamaskbot | |
| CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
| CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |