Skip to content

Commit

Permalink
Update Crowdin Download workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-vara committed Feb 24, 2025
1 parent df3cc70 commit d28ad64
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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).
Expand All @@ -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 }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 comments on commit d28ad64

Please sign in to comment.