-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (28 loc) · 947 Bytes
/
markdownlint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8 # v45.0.7
id: changed-files
with:
files: "**/*.md"
separator: ","
- name: Run markdownlint
uses: DavidAnson/markdownlint-cli2-action@05f32210e84442804257b2a6f20b273450ec8265 # v19.1.0
if: steps.changed-files.outputs.any_changed == 'true'
with:
config: .github/.markdownlint-cli2.yaml
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ","