Skip to content

Commit 41697a8

Browse files
committed
✨ add crowdin action
1 parent 8c04850 commit 41697a8

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/crowdin.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Crowdin Action
2+
3+
on:
4+
push:
5+
branches: [ gh-pages ]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
synchronize-with-crowdin:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: crowdin action
21+
uses: crowdin/github-action@v2
22+
with:
23+
upload_sources: true
24+
upload_translations: false
25+
download_translations: true
26+
localization_branch_name: l10n
27+
create_pull_request: true
28+
pull_request_title: 'New Crowdin Translations'
29+
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
30+
pull_request_base_branch_name: 'gh-pages'
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
34+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 commit comments

Comments
 (0)