🔀 Merge pull request #27 from claviering/feat-add #15
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: 检查 JSON 格式 | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
workflow_dispatch: # 手动执行 | |
jobs: | |
check-json: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Actions | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "pypy-3.7" | |
- name: Check JSON | |
run: cat data.json | python -m json.tool | tee data.json | |
- name: Check JSON | |
run: cat 傲娇系二次元bot词库5千词V1.2.json | python -m json.tool | tee 傲娇系二次元bot词库5千词V1.2.json | |
- name: Check JSON | |
run: cat 可爱系二次元bot词库1.5万词V1.2.json | python -m json.tool | tee 可爱系二次元bot词库1.5万词V1.2.json |