Skip to content

Commit

Permalink
add document-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
robberphex committed Feb 20, 2024
1 parent 92a32d8 commit 9b4eefa
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/document-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: document-lint

on:
push:
branches:
- '*'
pull_request:
branches:
- master
- "1.8"
- "2.0"

jobs:
document-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- run: npm install -g markdownlint-cli

- name: use markdownlint v0.5.0 to lint markdown file (https://github.com/markdownlint/markdownlint)
run: |
find ./ -name "*.md" | grep -v vendor | grep -v commandline | grep -v .github | grep -v swagger | grep -v api | \
xargs markdownlint --disable MD010 MD013 MD024 MD029 MD033 MD036 --

0 comments on commit 9b4eefa

Please sign in to comment.