-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (49 loc) · 1.43 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
name: Crowdin sync
on:
workflow_dispatch:
push:
branches: [ "dev" ]
schedule:
- cron: "0 17 * * 5"
jobs:
sync-crowdin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: dev
fetch-depth: 0
- name: Crowdin sync
uses: crowdin/[email protected]
with:
create_pull_request: false
localization_branch_name: "l10n"
commit_message: "feat(l10n): update translations"
upload_sources: true
upload_translations: true
download_translations: true
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Checkout l10n branch
uses: actions/checkout@v4
continue-on-error: true # so the workflow still "succeeds"
id: l10n
with:
ref: l10n
path: l10n
- uses: actions/setup-node@v4
if: success()
with:
node-version: 22
- name: Clean untranslated files
if: success()
run: |
cd l10n
node .github/crowdin-clean.mjs
git config user.name Crowdin Bot
git config user.email [email protected]
git add ./app/src/main/res
git commit -m "chore(l10n): clean untranslated files"
git push