From d28ad64347bbe1cf382a034876cebbff8817d5a2 Mon Sep 17 00:00:00 2001 From: Vara Date: Mon, 24 Feb 2025 16:48:24 +0530 Subject: [PATCH] Update Crowdin Download workflow --- .github/workflows/crowdin-download.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/crowdin-download.yml b/.github/workflows/crowdin-download.yml index 0ea8daf6..f46a5a54 100644 --- a/.github/workflows/crowdin-download.yml +++ b/.github/workflows/crowdin-download.yml @@ -2,11 +2,16 @@ name: Crowdin Download Action on: workflow_dispatch: + inputs: + base_branch: + description: 'Base branch for the pull request' + required: false + default: 'main' permissions: contents: write pull-requests: write - + jobs: synchronize-with-crowdin: runs-on: ubuntu-latest @@ -26,7 +31,7 @@ jobs: auto_approve_imported: true pull_request_title: 'New Crowdin Translations' pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)' - pull_request_base_branch_name: 'main' + pull_request_base_branch_name: ${{ inputs.base_branch || 'main' }} env: # A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository). @@ -36,4 +41,4 @@ jobs: CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }} # Visit https://crowdin.com/settings#api-key to create this token - CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} \ No newline at end of file + CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}