修正“𢆇”、“𥕗”的拆分;改构建码表脚本中的代称"标准码"为“全息码”;增加无重码位的输出 #19
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: 生成码表 | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'src/**' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 检查分支 | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: 安装 Python 3.9 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: 安装模块 | |
run: | | |
cd src | |
pip install -r requirements.txt | |
- name: 构建码表 | |
run: | | |
cd src | |
python 构建码表.py | |
- name: 检查文件变化 | |
id: verify_diff | |
run: | | |
git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT | |
- name: 暂存提交 | |
if: steps.verify_diff.outputs.changed == 'true' | |
run: | | |
git config --global user.name 'siuze' | |
git config --global user.email '[email protected]' | |
export TZ='Asia/Shanghai' | |
git add . | |
git commit -m "自动构建码表" -a | |
- name: 推送 | |
if: steps.verify_diff.outputs.changed == 'true' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |