Crowdin Upload #866
This file contains 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 Upload | |
on: | |
workflow_dispatch: | |
schedule: | |
# runs every day at 11:00 AM UTC | |
- cron: "0 11 * * *" | |
jobs: | |
i18n-upload: | |
name: Upload | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout Source Files | |
uses: actions/checkout@v2 | |
- name: Generate Crowdin Config | |
uses: freecodecamp/crowdin-action@main | |
env: | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }} | |
CROWDIN_API_URL: "https://freecodecamp.crowdin.com/api/v2/" | |
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_RPG }} | |
PLUGIN: "generate-config" | |
PROJECT_NAME: "rpg" | |
- name: Crowdin Upload | |
uses: crowdin/github-action@master | |
# options: https://github.com/crowdin/github-action/blob/master/action.yml | |
with: | |
# uploads | |
upload_sources: true | |
upload_translations: false | |
auto_approve_imported: false | |
import_eq_suggestions: false | |
# downloads | |
download_translations: false | |
# pull-request | |
create_pull_request: false | |
# global options | |
config: "./crowdin-config.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_RPG }} | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }} | |
- name: Hide Non-Translated Strings | |
uses: freecodecamp/crowdin-action@main | |
env: | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_CAMPERBOT_SERVICE_TOKEN }} | |
CROWDIN_API_URL: "https://freecodecamp.crowdin.com/api/v2/" | |
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID_RPG }} | |
PLUGIN: "hide-renpy-strings" |