-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathcrowdin_download_translations.yml
More file actions
34 lines (30 loc) · 1.25 KB
/
crowdin_download_translations.yml
File metadata and controls
34 lines (30 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 }}