2021-01-25 03:09:57 +00:00
|
|
|
name: Crowdin Curriculum Download
|
2021-01-12 18:20:54 +00:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2021-01-21 06:00:16 +00:00
|
|
|
|
2021-01-12 18:20:54 +00:00
|
|
|
i18n-download-curriculum-translations:
|
|
|
|
name: Learn
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Source Files
|
|
|
|
uses: actions/checkout@v2
|
2021-01-21 06:00:16 +00:00
|
|
|
|
2021-01-12 18:20:54 +00:00
|
|
|
##### Chinese Download #####
|
|
|
|
- name: Crowdin Download for Chinese Translations
|
|
|
|
uses: crowdin/github-action@master
|
|
|
|
# options: https://github.com/crowdin/github-action/blob/master/action.yml
|
|
|
|
with:
|
|
|
|
# uploads
|
|
|
|
upload_sources: false
|
|
|
|
upload_translations: false
|
|
|
|
auto_approve_imported: false
|
|
|
|
import_eq_suggestions: false
|
|
|
|
|
|
|
|
# downloads
|
|
|
|
download_translations: true
|
|
|
|
skip_untranslated_files: true
|
|
|
|
export_only_approved: true
|
2021-01-21 06:00:16 +00:00
|
|
|
|
2021-02-01 04:04:36 +00:00
|
|
|
commit_message: 'chore(i8n,learn): processed translations'
|
2021-01-21 06:00:16 +00:00
|
|
|
|
2021-01-12 18:20:54 +00:00
|
|
|
# pull-request
|
2021-02-01 04:04:36 +00:00
|
|
|
localization_branch_name: i18n-sync-learn-processed-translations
|
2021-01-21 06:00:16 +00:00
|
|
|
create_pull_request: false
|
2021-02-01 04:04:36 +00:00
|
|
|
pull_request_title: 'chore(i18n,learn): Processed translations from Crowdin'
|
2021-01-12 18:20:54 +00:00
|
|
|
pull_request_body: ''
|
2021-02-01 04:04:36 +00:00
|
|
|
pull_request_labels: 'scope: i18n, scope: learn, crowdin-sync'
|
2021-01-12 18:20:54 +00:00
|
|
|
|
|
|
|
# global options
|
|
|
|
config: './curriculum/crowdin.yml'
|
|
|
|
base_url: ${{ secrets.CROWDIN_BASE_URL_FCC }}
|
|
|
|
|
|
|
|
# Uncomment below to debug
|
|
|
|
# dryrun_action: true
|
|
|
|
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_CURRICULUM }}
|
|
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }}
|