-
-
Notifications
You must be signed in to change notification settings - Fork 18
52 lines (48 loc) · 1.66 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
name: Sync Crowdin
on:
push:
branches:
- 'main'
paths:
- 'ui/src/commonMain/moko-resources/base/plurals.xml'
- 'ui/src/commonMain/moko-resources/base/strings.xml'
- 'ui/src/commonMain/moko-resources/base/strings_auth.xml'
- 'ui/src/commonMain/moko-resources/base/strings_explore.xml'
- 'ui/src/commonMain/moko-resources/base/strings_explorer.xml'
- 'ui/src/commonMain/moko-resources/base/strings_home.xml'
- 'ui/src/commonMain/moko-resources/base/strings_profile.xml'
- 'ui/src/commonMain/moko-resources/base/strings_release.xml'
- 'ui/src/commonMain/moko-resources/base/strings_repository.xml'
- 'ui/src/commonMain/moko-resources/base/strings_settings.xml'
- '.github/workflows/crowdin.yml'
- 'crowdin.yml'
schedule:
- cron: "0 17 * * 6" # "At 17:00 on Saturday."
workflow_dispatch:
jobs:
sync-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Crowdin
uses: crowdin/github-action@1.4.11
with:
config: crowdin.yml
upload_translations: true
download_translations: true
push_translations: true
create_pull_request: false
localization_branch_name: l10n
commit_message: 'chore(i18n): sync translations'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
- name: Merge
run: |
sudo chmod -R ugo+rwX .
git checkout main
git add *
git merge l10n
git push