-
Notifications
You must be signed in to change notification settings - Fork 163
44 lines (38 loc) · 1.14 KB
/
crowdin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Crowdin Action
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- app/src/main/res/values/strings.xml
schedule:
- cron: '0 0 * * *'
permissions:
contents: write
pull-requests: write
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Crowdin Action
uses: crowdin/github-action@master
with:
# Upload and download translation settings
upload_sources: true
upload_translations: true
download_translations: true
skip_untranslated_files: true
# Pull request settings
create_pull_request: true
localization_branch_name: crowdin_branch
pull_request_labels: 'enhancement, documentation'
pull_request_title: '[Translation] Update translation from Crowdin'
# Global settings
config: 'crowdin.yml'
crowdin_branch_name: main
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_API_TOKEN }}