forked from revive-adserver/revive-adserver
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 1.08 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
name: Crowdin
on:
workflow_dispatch: ~
schedule:
- cron: '0 8 * * *'
jobs:
synchronize-with-crowdin:
name: Download translations from Crowdin
if: github.repository == 'revive-adserver/revive-adserver'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download from Crowdin
if: env.CROWDIN_PROJECT_ID && env.CROWDIN_PERSONAL_TOKEN
uses: revive-adserver/crowdin-github-action@revive
with:
config: crowdin.yml.dist
upload_sources: false
upload_translations: false
download_translations: true
localization_branch_name: crowdin_translations
create_pull_request: true
pull_request_title: 'New Crowdin Translations'
pull_request_body: 'Updated translations from Crowdin'
pull_request_base_branch_name: 'master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}