优化笔记本、翻译并重新引入自动push (#48)

* optimize: 精简未用到的配置项并在特征提取初步引入mps

* add cmd argument: --noautoopen

* fix: i18n

* fix

* fix

* add genlocale workflow

* add unitest

* fix

* fix

* fix

* 优化笔记本

* reintroduce Push changes

* disable genlocale on non-main branch

* 将笔记本checkout改为stable
This commit is contained in:
源文雨
2023-04-13 21:32:08 +08:00
committed by GitHub
parent 55135e0a0e
commit 99996fbe8a
6 changed files with 90 additions and 25 deletions

View File

@@ -1,5 +1,8 @@
name: genlocale
on: [ push ]
on:
push:
branches:
- main
jobs:
golangci:
name: genlocale
@@ -22,3 +25,10 @@ jobs:
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add --all
git commit -m "🎨 同步 locale"
- name: Push changes
if: ${{ !github.head_ref }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main