风格: 统一代码风格配置 #57
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: lint markdown | |
on: [push, pull_request] | |
jobs: | |
lint-markdown: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set node version | |
uses: actions/setup-node@v4 | |
- name: Install dependencies | |
run: npm install | |
- name: Lint markdown | |
run: npm run md-fix | |
- name: Lint zh_CN | |
run: npm run zh-fix | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_options: '--no-verify' | |
commit_message: Fix markdown | |
file_pattern: '*.md */*.md */*/*.md' |