Skip to content

Commit

Permalink
fix(docs): Fix markdown
Browse files Browse the repository at this point in the history
- Set node version
- Install dependencies
- Lint markdown
- Lint zh_CN
- Commit changes with '--no-verify' option and 'Fix markdown' message
  • Loading branch information
guanguans committed Apr 12, 2024
1 parent b743266 commit bfb31d3
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/lint-md.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: lint-md-github-action
uses: lint-md/github-action@v0.1.1
- 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:
configFile: .lintmdrc
failOnWarnings: false
files: ./ ./*/ ./*/*/
commit_options: '--no-verify'
commit_message: Fix markdown
file_pattern: '*.md'

0 comments on commit bfb31d3

Please sign in to comment.