Skip to content

Commit 9de7be9

Browse files
committed
fix(ci): sync translations to default branch
1 parent ce0cca7 commit 9de7be9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/crowdin_sync.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on: workflow_dispatch
55
jobs:
66
crowdin_sync:
77
runs-on: ubuntu-24.04
8+
if: github.ref_name == github.event.repository.default_branch
89
steps:
910
- name: Checkout Repository
1011
uses: actions/checkout@v4
@@ -25,7 +26,7 @@ jobs:
2526
create_pull_request: true
2627
pull_request_title: 'feat: updated translations from crowdin'
2728
pull_request_labels: 'priority: low, status: ready for review, type: translation'
28-
pull_request_base_branch_name: 'main'
29+
pull_request_base_branch_name: '${{ github.event.repository.default_branch }}'
2930

3031
source: 'machinelib.json'
3132
translation: 'src/main/resources/assets/machinelib/lang/%locale_with_underscore%.json'

0 commit comments

Comments
 (0)