Skip to content

Commit 6ac6873

Browse files
Create lint-md.yml
1 parent 2225e67 commit 6ac6873

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/lint-md.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Lint Markdown file
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: ["main"]
7+
8+
# Run on pull request
9+
pull_request:
10+
branches: ["main"]
11+
12+
# Allows you to run this workflow manually from the Actions tab
13+
workflow_dispatch:
14+
15+
jobs:
16+
# Lint Markdown file job
17+
lint:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: DavidAnson/markdownlint-cli2-action@v15
22+
with:
23+
# Lint all markdown files in the repo
24+
globs: '**/*.md'
25+
# Automatically fix supported issues
26+
fix: true

0 commit comments

Comments
 (0)