Skip to content

7.x

7.x #5283

Workflow file for this run

name: "Lint Markdown"
on:
pull_request:
branches:
- dev
- lts
paths:
- "**/*.md"
jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: lts/*
- name: Install markdownlint
run: npm install -g markdownlint-cli
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
list-files: shell
filters: |
markdown:
- added|modified: '*.md'
- uses: xt0rted/markdownlint-problem-matcher@1a5fabfb577370cfdf5af944d418e4be3ea06f27 # v3.0.0
- name: Run markdownlint
run: markdownlint --config ./.markdownlint.json ${{ steps.filter.outputs.markdown_files }}