update localization workflow

This commit is contained in:
Zelophed 2022-12-15 15:48:59 +01:00 committed by GitHub
parent 2297421cc1
commit d235edec7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,15 @@
name: Crowdin Action name: Crowdin Action
# Controls when the action will run. # Controls when the action will run.
#on: on:
# Only run when started manually
workflow_dispatch:
inputs:
uploadTranslations:
description: "Set to true to upload (changed) translations to Crowdin"
type: boolean
required: true
default: false
#schedule: #schedule:
#- cron: '0 */6 * * *' # Every 6 hours - https://crontab.guru/#0_*/6_*_*_* #- cron: '0 */6 * * *' # Every 6 hours - https://crontab.guru/#0_*/6_*_*_*
@ -22,7 +30,7 @@ jobs:
# Upload sources to Crowdin # Upload sources to Crowdin
upload_sources: true upload_sources: true
# Upload translations to Crowdin, only use true at initial run # Upload translations to Crowdin, only use true at initial run
upload_translations: true upload_translations: ${{ github.event.inputs.uploadTranslations }}
# Make pull request of Crowdin translations # Make pull request of Crowdin translations
download_translations: true download_translations: true
# To download translations to the specified version branch # To download translations to the specified version branch