Skip to content

Commit

Permalink
ci: 👷 setup markdown linter workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxbarsukov committed Oct 27, 2024
1 parent 448b31a commit 0a17732
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Markdown CI

on:
push:
branches:
- master
paths:
- ".github/workflows/*"
- ".markdownlint.jsonc"
- "**/*.md"
pull_request:
branches:
- master
paths:
- ".github/workflows/*"
- ".markdownlint.jsonc"
- "**/*.md"

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: markdownlint-cli
uses: nosborn/github-action-markdown-cli@v3.3.0
with:
files: "*.md"
config_file: .markdownlint.jsonc
dot: true
3 changes: 3 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
// I can set heading levels at my discretion!
"MD001": false,

// Style of unordered lists..
"MD007": {
"indent": 2,
Expand Down

0 comments on commit 0a17732

Please sign in to comment.