-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (51 loc) · 1.65 KB
/
crowdin.yml
File metadata and controls
57 lines (51 loc) · 1.65 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Crowdin Translations Sync
on:
push:
branches:
- dev
paths:
- 'languages/pressbooks-network-catalog.pot'
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
action:
description: 'Action to perform'
type: choice
options:
- Pull Translations
- Seed Translations
default: Pull Translations
jobs:
upload-sources:
name: Upload Sources
if: github.event_name == 'push'
uses: pressbooks/reusable-workflows/.github/workflows/crowdin.yml@main
with:
action: upload
pot_file_path: languages/pressbooks-network-catalog.pot
crowdin_branch_name: pressbooks-network-catalog
base_branch: dev
secrets: inherit
download-translations:
name: Pull Translations
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.event.inputs.action == 'Pull Translations')
uses: pressbooks/reusable-workflows/.github/workflows/crowdin.yml@main
with:
action: download
pot_file_path: languages/pressbooks-network-catalog.pot
languages_dir: languages/
crowdin_branch_name: pressbooks-network-catalog
base_branch: dev
secrets: inherit
seed-translations:
name: Seed Translations
if: github.event_name == 'workflow_dispatch' && github.event.inputs.action == 'Seed Translations'
uses: pressbooks/reusable-workflows/.github/workflows/crowdin.yml@main
with:
action: seed
pot_file_path: languages/pressbooks-network-catalog.pot
languages_dir: languages/
crowdin_branch_name: pressbooks-network-catalog
base_branch: dev
secrets: inherit