Markdown Lint 5c630f31798f286e0ce7f1bd22f5bb5cd6b4ef97 by @dstrates #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
uses: tj-actions/changed-files@48d8f15b2aaa3d255ca5af3eba4870f807ce6b3c # v45.0.2 | |
id: changed-files | |
with: | |
files: "**/*.md" | |
separator: "," | |
- name: Run markdownlint | |
uses: DavidAnson/markdownlint-cli2-action@db43aef879112c3119a410d69f66701e0d530809 # v17.0.0 | |
if: steps.changed-files.outputs.any_changed == 'true' | |
with: | |
globs: ${{ steps.changed-files.outputs.all_changed_files }} | |
separator: "," |