From 7df8d627e9124d877a398c080c5db366c12c6d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=ADguel=20=C3=81ngel=20Mulero=20Mart=C3=ADnez?= Date: Sun, 11 Dec 2022 00:59:26 +0100 Subject: [PATCH] Move upload translations action to own workflow (#3130) --- .github/workflows/nightly.yml | 9 --------- .github/workflows/translations-upload.yml | 14 +++++++------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a5997ae89d..17311d0d5b 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -27,15 +27,6 @@ jobs: with: debug_build: true - upload-translations: - if: ${{ github.ref_name == 'master' }} - name: Upload translations - needs: ci - uses: ./.github/workflows/translations-upload.yml - secrets: - CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} - CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} - release: name: Nightly release needs: ci diff --git a/.github/workflows/translations-upload.yml b/.github/workflows/translations-upload.yml index d4683efbfa..2e6c7a7833 100644 --- a/.github/workflows/translations-upload.yml +++ b/.github/workflows/translations-upload.yml @@ -1,13 +1,14 @@ name: Translations upload to Crowdin +concurrency: upload-crowdin + on: workflow_dispatch: - workflow_call: - secrets: - CROWDIN_PROJECT_ID: - required: true - CROWDIN_PERSONAL_TOKEN: - required: true + push: + branches: + - master + paths: + - 'locales/en/**' jobs: betaflight-messages-to-crowdin: @@ -31,4 +32,3 @@ jobs: upload_translations: false download_translations: false -