From 0edec5814a88705913971d2537ffc64fdb5cc2b0 Mon Sep 17 00:00:00 2001 From: hawkeye116477 Date: Mon, 4 Nov 2024 15:46:38 +0100 Subject: [PATCH] Add possibility to download translations --- .github/workflows/crowdin_download.yml | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/crowdin_download.yml diff --git a/.github/workflows/crowdin_download.yml b/.github/workflows/crowdin_download.yml new file mode 100644 index 0000000..dccbdfe --- /dev/null +++ b/.github/workflows/crowdin_download.yml @@ -0,0 +1,32 @@ +name: Download translations from Crowdin + +on: workflow_dispatch + +jobs: + download-from-crowdin: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Crowdin Action + uses: crowdin/github-action@v2 + with: + upload_sources: false + upload_translations: false + download_translations: true + skip_untranslated_strings: true + skip_untranslated_files: false + commit_message: 'Import translation work from Crowdin' + create_pull_request: true + pull_request_title: 'New Crowdin translations' + pull_request_labels: 'enhancement' + config: 'crowdin.yml' + dryrun_action: false + project_id: ${{ vars.CROWDIN_PROJECT_ID }} + token: ${{ secrets.CROWDIN_TOKEN }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}