Skip to content

Markdown Lint 49b5f92e5737f96ebcc04b870316e59889ea420d by @dstrates #5

Markdown Lint 49b5f92e5737f96ebcc04b870316e59889ea420d by @dstrates

Markdown Lint 49b5f92e5737f96ebcc04b870316e59889ea420d by @dstrates #5

Workflow file for this run

name: Markdown Lint
run-name: Markdown Lint ${{ github.sha }} by @${{ github.actor }}
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "**/*.md"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Get changed files
uses: tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366 # v45.0.5
id: changed-files
with:
files: "**/*.md"
separator: ","
- name: Run markdownlint
uses: DavidAnson/markdownlint-cli2-action@a23dae216ce3fee4db69da41fed90d2a4af801cf # v19.0.0
if: steps.changed-files.outputs.any_changed == 'true'
with:
config: .github/.markdownlint-cli2.yaml
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ","