Skip to content

Commit 61afe42

Browse files
committed
Update Crowdin Workflows
1 parent cfe8b6e commit 61afe42

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/crowdin-download.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
1+
# Instructions for Using the Translation Workflow:
2+
# Detailed guidelines for utilizing the translation workflow can be found in Section 5.12
3+
# of our documentation: [How We Work](https://newfold-labs.github.io/how-we-work/).
4+
15
name: Crowdin Download Action
26

37
on:
48
workflow_dispatch:
9+
inputs:
10+
base_branch:
11+
description: 'Base branch for the pull request'
12+
required: false
13+
default: 'main'
514

615
permissions:
716
contents: write
817
pull-requests: write
9-
18+
1019
jobs:
1120
synchronize-with-crowdin:
1221
runs-on: ubuntu-latest
@@ -26,7 +35,7 @@ jobs:
2635
auto_approve_imported: true
2736
pull_request_title: 'New Crowdin Translations'
2837
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
29-
pull_request_base_branch_name: 'main'
38+
pull_request_base_branch_name: ${{ inputs.base_branch || 'main' }}
3039

3140
env:
3241
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository).
@@ -36,4 +45,4 @@ jobs:
3645
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
3746

3847
# Visit https://crowdin.com/settings#api-key to create this token
39-
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
48+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

.github/workflows/crowdin-upload.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Instructions for Using the Translation Workflow:
2+
# Detailed guidelines for utilizing the translation workflow can be found in Section 5.12
3+
# of our documentation: [How We Work](https://newfold-labs.github.io/how-we-work/).
4+
15
name: Crowdin Upload Action
26

37
on:

0 commit comments

Comments
 (0)