Lint Markdown files after push by mhucka #10
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
# Summary: GitHub Actions workflow to run a Markdown linter on .md files. | |
# | |
# Copyright 2024 California Institute of Technology. | |
# License: Modified BSD 3-clause – see file "LICENSE" in the project website. | |
# Website: https://github.com/caltechlibrary/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: | |
- uses: actions/checkout@v4 | |
- uses: DavidAnson/markdownlint-cli2-action@v13 | |
with: | |
config: .markdownlint.json | |
globs: | | |
*.md |