forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 127
44 lines (37 loc) · 940 Bytes
/
ci_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
44
name: CI
on:
push:
branches:
- translate
pull_request:
branches:
- translate
jobs:
translate_check:
name: Run translate checks
runs-on: ubuntu-20.04
steps:
- name: 'Update Branch'
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Installing Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Installing deps
run: |
python -m pip install --upgrade pip
pip install -r ./tools/translator/requirements.txt
- name: Git fetch
run: |
git fetch
- name: Create temporary branch
run: |
git checkout -b translate_tmp origin/translate
- name: Apply PR translation
run: |
git diff ..${{ github.sha }} | git apply
- name: 'Generate Translation'
run: |
python ./tools/translator/converter.py