-
Notifications
You must be signed in to change notification settings - Fork 170
68 lines (57 loc) · 1.74 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Update translations
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
crowdin:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Update translations
uses: crowdin/[email protected]
with:
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: master
crowdin_branch_name: Main
create_pull_request: false
push_translations: true
commit_message: "Automatic language update."
export_only_approved: false
config: ".github/crowdin.yml"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
CROWDIN_PROJECT_ID: ${{secrets.CROWDIN_PROJECT_ID}}
CROWDIN_PERSONAL_TOKEN: ${{secrets.CROWDIN_PERSONAL_TOKEN}}
readme:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 17
- name: Update README
run: |
cd .github
npm ci
node update.js
env:
CROWDIN_PROJECT_ID: ${{secrets.CROWDIN_PROJECT_ID}}
CROWDIN_PERSONAL_TOKEN: ${{secrets.CROWDIN_PERSONAL_TOKEN}}
- name: Commit files
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Update language README."
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}