add pr-validation #6
This file contains hidden or 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: Markdown Lint | |
| on: | |
| pull_request: | |
| branches: | |
| - main # Or your default branch name | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install markdownlint-cli | |
| run: npm install -g markdownlint-cli2 | |
| - name: Run markdownlint | |
| # FIX: Changed exclusion patterns from '#' to '!' | |
| run: markdownlint-cli2 --config .markdownlint.jsonc "**/*.md" "!node_modules" "!.git" |