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