maomaowm/.github/workflows/docs.yml
copilot-swe-agent[bot] f1b97a5453 Add path filters to workflows and create docs linting workflow
Co-authored-by: squassina <8495707+squassina@users.noreply.github.com>
2026-02-18 10:08:44 +00:00

31 lines
593 B
YAML

name: Documentation
on:
push:
branches: [main, master]
paths:
- '**.md'
- '.github/workflows/docs.yml'
pull_request:
branches: [main, master]
paths:
- '**.md'
- '.github/workflows/docs.yml'
workflow_dispatch:
jobs:
markdown-lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Lint markdown files
uses: DavidAnson/markdownlint-cli2-action@v18
with:
globs: |
**/*.md
!**/node_modules/**