Skip to content

Commit 7584af5

Browse files
committed
feat: add pr_branch to translate-docs workflow
1 parent e4e8cce commit 7584af5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/translate-docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
- main
1313
workflow_dispatch: # Allow manual triggering
1414
inputs:
15+
pr_branch:
16+
description: 'Branch name for the pull request'
17+
required: false
18+
type: string
19+
default: 'docs/update-translations'
1520
custom_arguments:
1621
description: 'Custom arguments to pass to the translation package command. e.g., "-t zh-hans"'
1722
required: false
@@ -43,6 +48,7 @@ jobs:
4348
# Optional inputs with their default values shown
4449
github_token: ${{ secrets.GITHUB_TOKEN }}
4550
custom_arguments: ${{ github.event.inputs.custom_arguments }}
51+
pr_branch: ${{ github.event.inputs.pr_branch || 'docs/update-translations' }}
4652
# translation_command: 'pnpm run translate'
4753
# base_branch: 'main'
4854
# pr_branch: 'docs/update-translations'

0 commit comments

Comments
 (0)