Skip to content

Commit 056118a

Browse files
authored
Add markdown linter workflow (#363)
1 parent 27a16ce commit 056118a

File tree

3 files changed

+223
-122
lines changed

3 files changed

+223
-122
lines changed

.github/workflows/markdown-linter.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: Markdown-Linter
3+
4+
on:
5+
pull_request:
6+
branches: [main]
7+
paths:
8+
- '**.md'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
build:
16+
name: Linter
17+
runs-on: ubuntu-22.04
18+
19+
permissions:
20+
contents: read
21+
packages: read
22+
# To report GitHub Actions status checks
23+
statuses: write
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
with:
29+
# super-linter needs the full git history to get the
30+
# list of files that changed across commits
31+
fetch-depth: 0
32+
33+
- name: Super-linter
34+
uses: super-linter/[email protected]
35+
env:
36+
VALIDATE_ALL_CODEBASE: false
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
VALIDATE_MARKDOWN: true
39+
DEFAULT_BRANCH: ${{ github.base_ref }}

0 commit comments

Comments
 (0)