From 2e3bdb7131dc4eed2fddb4362166c14330941272 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Sun, 2 Jul 2023 00:11:30 -0400 Subject: [PATCH 1/2] Add crowdin translation-upload (feedback) action --- .github/workflows/crowdin.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/crowdin.yml diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml new file mode 100644 index 00000000000..232155bb8d8 --- /dev/null +++ b/.github/workflows/crowdin.yml @@ -0,0 +1,26 @@ +name: Crowdin upload +on: + push: + branches: [ master ] + paths: core/src/com/biglybt/internat/* + +jobs: + crowdin-upload: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: crowdin upload + uses: crowdin/github-action@v1 + with: + upload_sources: false + upload_translations: true + download_translations: false + auto_approve_imported: true + # XXX: Next line should be removed after testing + dryrun_action: true + translation: 'core/src/com/biglybt/internat/*.properties' + project_id: ${{ secrets.CROWDIN_PROJECT_ID }} + token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} + From 36be654d29887cad681e6b1b5cf7cf17b9d95331 Mon Sep 17 00:00:00 2001 From: "FeRD (Frank Dana)" Date: Sun, 2 Jul 2023 00:26:07 -0400 Subject: [PATCH 2/2] crowdin action: Add workflow_dispatch trigger --- .github/workflows/crowdin.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index 232155bb8d8..5bcd632d821 100644 --- a/.github/workflows/crowdin.yml +++ b/.github/workflows/crowdin.yml @@ -3,6 +3,7 @@ on: push: branches: [ master ] paths: core/src/com/biglybt/internat/* + workflow_dispatch: jobs: crowdin-upload: