-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.59 KB
/
translate.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
name: Translate
on:
workflow_dispatch: {}
schedule:
- cron: '0 7 15 * *'
jobs:
translate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: false
- name: Transifex Pull (fully translated)
run: ./0install.sh run https://apps.0install.net/devel/transifex-cli.xml --token ${{secrets.TRANSIFEX_API_KEY}} pull --translations --mode translator --all --minimum-perc 100
- name: Transifex Pull (partially translated) # Only languages that can be completed with Machine Translation
run: ./0install.sh run https://apps.0install.net/devel/transifex-cli.xml --token ${{secrets.TRANSIFEX_API_KEY}} pull --translations --mode translator --languages cs,el,es,fr,id,it,ja,ko,nl,pl,pt_PT,ro,ru,zh
- name: DeepL Cache
uses: actions/cache@v4
with:
path: '**/*.a.resx'
key: deepl
- name: DeepL Translate
uses: Yeah69/MrMeeseeks.ResXTranslationCombinator@main
env:
GITHUB_TOKEN: ${{github.token}}
with:
auth: ${{secrets.DEEPL_API_KEY}}
source-lang: en
localization-filter: cs;el;es;fr;id;it;ja;ko;nl;pl;pt-PT;ro;ru;zh
glossary-name: Zero Install
context: Command-line tool for building software packages.
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
branch: translate
commit-message: Update translations
title: Update translations
body: Translations downloaded from Transifex and generated with DeepL