#4 修正自动commit #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Compile po into mo | |
on: | |
push: | |
branches: | |
- main | |
- dev_i18 | |
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 | |
uses: actions/checkout@v4 | |
run: | | |
date > generated.txt | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -m "#4 自动编译mo文件提交 $(date +%Y-%m-%d)" | |
git push |