Skip to content

Lint Markdown files after workflow_dispatch by mhucka #10

Lint Markdown files after workflow_dispatch by mhucka

Lint Markdown files after workflow_dispatch by mhucka #10

# Summary: GitHub Actions workflow to run a Markdown linter on .md files.
#
# Copyright 2024 Michael Hucka.
# License: MIT License – see file "LICENSE" in the project website.
# Website: https://github.com/mhucka/template
name: Markdown file linter
run-name: Lint Markdown files after ${{github.event_name}} by ${{github.actor}}
on:
push:
paths:
- '*.md'
pull_request:
paths:
- '*.md'
workflow_dispatch:
paths:
- '*.md'
jobs:
lint:
name: Run Markdown linter
runs-on: ubuntu-latest
steps:
- name: Check out copy of git repository.
uses: actions/checkout@v4
- name: Run Markdownlint on .md files.
uses: DavidAnson/markdownlint-cli2-action@v15
with:
config: .markdownlint.json
globs: |
*.md