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