From d235edec7ee318da72ed90c1346177f3724faac0 Mon Sep 17 00:00:00 2001 From: Zelophed Date: Thu, 15 Dec 2022 15:48:59 +0100 Subject: [PATCH] update localization workflow --- .github/workflows/localization.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/localization.yml b/.github/workflows/localization.yml index bb4813fa5..ff318efe4 100644 --- a/.github/workflows/localization.yml +++ b/.github/workflows/localization.yml @@ -4,7 +4,15 @@ name: Crowdin Action # 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: #- cron: '0 */6 * * *' # Every 6 hours - https://crontab.guru/#0_*/6_*_*_* @@ -22,7 +30,7 @@ jobs: # Upload sources to Crowdin upload_sources: true # 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 download_translations: true # To download translations to the specified version branch