generated from mhucka/template
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 908 Bytes
/
markdown-linter.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
31
32
33
34
35
36
37
38
# 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/macos-hacks
name: Markdown file linter
run-name: Lint Markdown files after ${{github.event_name}} by ${{github.actor}}
on:
push:
branches:
- main
paths:
- '*.md'
pull_request:
branches:
- main
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