Crowdin Action #6
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 Action | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '0 */12 * * *' | |
| jobs: | |
| synchronize-with-crowdin: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| # Use PAT to ensure that the commit later can trigger status check workflows | |
| token: ${{ secrets.METAMASKBOT_CROWDIN_TOKEN }} | |
| - name: crowdin action | |
| uses: crowdin/github-action@a3160b9e5a9e00739392c23da5e580c6cabe526d | |
| with: | |
| upload_translations: false | |
| download_translations: 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_ACTOR: metamaskbot | |
| GITHUB_TOKEN: ${{ secrets.METAMASKBOT_CROWDIN_TOKEN }} | |
| CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
| CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |