-
Notifications
You must be signed in to change notification settings - Fork 17
65 lines (55 loc) · 2.01 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: sync-upstream
on:
schedule:
# every hours
- cron: '0 * * * *'
workflow_dispatch:
jobs:
build:
name: Sync
runs-on: ubuntu-20.04
steps:
- name: Checkout
# Checkout target revision from git repository
uses: actions/checkout@v2
- name: Setup build env
# Setup build environment(install runtime, library, etc.)
run: |
bin/setup-build-env
- name: Set up JDK 11
# Setup JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Configure git
# Setup git configuration
run: |
bin/configure-git
- name: Sync submodule
# Sync submodule, which points the upstream repository to a latest revision
run: bin/sync-submodule
- name: Push changes
# Commit and Push the upstream submodule change
run: bin/push-changes "Update upstream"
- name: Exec po4a-updatepo
# Execute po4a-updatepo to extract texts from the original source files and update .po files
run: |
bin/exec-po4a-updatepo
- name: Push changes
# Commit and Push the updated .po files
run: bin/push-changes "Update .po files"
- name: Update translation stats
# Update the translation stats .csv file, which is used as an simplified dashboard ( https://github.com/quarkusio/cn.quarkus.io/blob/main/l10n/stats/translation.csv )
run: bin/update-translation-stats
- name: Push changes
# Commit and Push the translation stats .csv file
run: bin/push-changes "Update translation stats"
- name: Apply tmx
# Apply tmx file to .po files to fill known translations
run: bin/apply-tmx
- name: Push changes
# Commit and Push the .po files updated by tmx
run: bin/push-changes "Apply translation memory"
- name: Push changes
# Commit and Push the .po files updated by DeepL machine-translation
run: bin/push-changes "Add machine translation"