forked from LibChecker/LibChecker
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.1 KB
/
translation.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
name: Crowdin Action
on:
workflow_dispatch:
push:
branches: [ master ]
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
if: github.repository == 'LibChecker/LibChecker'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: crowdin action
uses: crowdin/github-action@master
with:
# Upload and download translation settings
upload_sources: true
upload_translations: true
download_translations: true
# Pull request settings
create_pull_request: true
localization_branch_name: crowdin_branch
pull_request_labels: 'enhancement, documentation'
# Global settings
config: 'crowdin.yml'
crowdin_branch_name: master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_API_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}