Skip to content

Lint Markdown files after pull_request by mhucka #42

Lint Markdown files after pull_request by mhucka

Lint Markdown files after pull_request by mhucka #42

# @file markdown-linter.yml
# @brief GitHub Actions workflow to run a Markdown linter on .md files
# @license Please see the file named LICENSE in the repository
# @repo https://github.com/AI4LAM/awesome-ai4lam
name: Lint Markdown files
run-name: Lint Markdown files after ${{github.event_name}} by ${{github.actor}}
on:
push:
branches:
- main
paths:
- '*.md'
pull_request:
branches:
- main
types:
- closed
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