-
Notifications
You must be signed in to change notification settings - Fork 31
44 lines (36 loc) · 964 Bytes
/
locale-po.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: Compile po into mo
on:
push:
branches:
- main
- dev_locale
paths:
- '**/*.po'
- '**/locale-po.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install polib==1.2.0
- name: Show dir
run: pwd
- name: Compile PO files
run: |
python .github/compile_po.py
- name: Commit changes
run: |
git config user.name github-actions
git config user.email [email protected]
git add data/locales/**/*.mo
git commit -m "#4 自动编译mo文件提交 $(date +%Y-%m-%d)"
git push