-
-
Notifications
You must be signed in to change notification settings - Fork 68
34 lines (32 loc) · 1.2 KB
/
crowdin-sync.yml
File metadata and controls
34 lines (32 loc) · 1.2 KB
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: "Synchronize with Crowdin"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
permissions:
contents: "write"
pull-requests: "write"
jobs:
synchronize-with-crowdin:
runs-on: "ubuntu-24.04"
steps:
- name: "Checkout repository"
uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # v6.0.2
with:
persist-credentials: false
- name: "Crowdin sync"
uses: "crowdin/github-action@d649adabd0daa7ea2ceeb232f66c30224575bb7e" # v2.15.1
with:
config: ".github/crowdin.yml"
upload_sources: true
download_translations: true
localization_branch_name: "l10n_crowdin_translations"
create_pull_request: true
pull_request_base_branch_name: "main"
pull_request_title: "New Crowdin Translations"
pull_request_body: "New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)"
commit_message: "Updated translations from Crowdin"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CROWDIN_PROJECT_ID: "${{ secrets.CROWDIN_PROJECT_ID }}"
CROWDIN_PERSONAL_TOKEN: "${{ secrets.CROWDIN_PERSONAL_TOKEN }}"