diff --git a/.github/workflows/lint-docs.yml b/.github/workflows/lint-docs.yml new file mode 100644 index 0000000000..af7b425a3f --- /dev/null +++ b/.github/workflows/lint-docs.yml @@ -0,0 +1,28 @@ +name: Lint docs + +on: + pull_request: + paths: + - 'docs/sources/**/*.md' + +permissions: + contents: read + +jobs: + prettier: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci --ignore-scripts + + - name: Check Markdown formatting + run: npx prettier --check --list-different=false --log-level=warn "docs/sources/**/*.md"