Skip to content

Commit cc4e542

Browse files
committed
ci: create crowdin action
1 parent 4ae87bb commit cc4e542

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

Diff for: .github/crowdin/crowdin-push.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
files:
2+
- source: /docs/*.md
3+
translation: /docs/%two_letters_code%/%original_file_name%
4+
ignore:
5+
- '/docs/_coverpage.md'
6+
- '/docs/_navbar.md'
7+
8+
project_id_env: CROWDIN_PROJECT_ID
9+
api_token_env: CROWDIN_PERSONAL_TOKEN

Diff for: .github/workflows/crowdin.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Crowdin Action
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- 'docs/**.md'
8+
branches: [develop, master, main]
9+
10+
jobs:
11+
crowdin:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Crowdin push
18+
uses: crowdin/github-action@v1
19+
with:
20+
upload_sources: true
21+
upload_translations: false
22+
download_translations: false
23+
push_translations: false
24+
config: '.github/crowdin/crowdin-push.yml'
25+
crowdin_branch_name: ${{ github.ref_name }}
26+
base_path: ${{ github.workspace }}
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
30+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 commit comments

Comments
 (0)