-
Notifications
You must be signed in to change notification settings - Fork 47
46 lines (43 loc) · 1.69 KB
/
crowdin-sync.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
name: Crowdin Action
on:
schedule:
- cron: '0 0 * * 0' # This runs the action every Sunday at midnight UTC
workflow_dispatch:
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.REPO_TOKEN }}
- name: Crowdin action for macOS app
uses: crowdin/github-action@v2
with:
config: 'crowdin.yml'
upload_sources: true
upload_translations: true
download_translations: true
localization_branch_name: crowdin-localization-macos
create_pull_request: true
pull_request_title: "chore: sync macOS app localizations with Crowdin"
commit_message: "chore: sync macOS app localizations with Crowdin"
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Crowdin action for website
uses: crowdin/github-action@v2
with:
config: 'crowdin-website.yml'
upload_sources: true
upload_translations: true
download_translations: true
localization_branch_name: crowdin-localization-website
create_pull_request: true
pull_request_title: "chore: sync website localizations with Crowdin"
commit_message: "chore: sync website localizations with Crowdin"
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_SITE_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}