Skip to content

Commit 089b0ec

Browse files
authored
Merge pull request #8 from 42ByteLabs/ci-markdown
Create markdown.yml
2 parents f352fa4 + 49a9877 commit 089b0ec

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/markdown.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: 'Markdown Lint'
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: read
12+
13+
jobs:
14+
markdown-lint:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: 'Checkout Repository'
18+
uses: actions/checkout@v4
19+
20+
- name: "Filter Changes"
21+
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
22+
id: changes
23+
with:
24+
filters: |
25+
src:
26+
- '**.md'
27+
28+
# lint markdown
29+
- name: "Lint Markdown"
30+
if: steps.changes.outputs.src == 'true'
31+
run: |
32+
npm install -g markdownlint-cli
33+
markdownlint '**.md' --ignore node_modules --disable MD013

0 commit comments

Comments
 (0)