-
Notifications
You must be signed in to change notification settings - Fork 24
47 lines (42 loc) · 1.55 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
name: Crowdin sync
on:
schedule:
- cron: "0 */12 * * *"
workflow_dispatch:
jobs:
crowdin-update-translations:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: crowdin action
uses: crowdin/github-action@v1.20.4
with:
config: '.github/crowdin.yml'
upload_translations: false
download_translations: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
crowdin-languages-progress:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Generate Crowdin translations progress markdown
uses: benjaminjonard/crowdin-translations-progress-action@1.0.7
with:
languages_per_row: 10
minimum_completion_percent: 80
file: README.md
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: Update Crowdin translations progress
body: Update Crowdin translations progress by [Crowdin translations progress](https://github.com/benjaminjonard/crowdin-translations-progress-action) GitHub action
commit-message: Update Crowdin translations progress
branch: crowdin-translations-progress-action