Github Action - Markdown Linting for PR

This commit is contained in:
Swissky 2024-11-13 12:29:42 +01:00
parent 118924f291
commit d6ce9cd317
3 changed files with 30 additions and 1 deletions

6
.github/.markdownlint.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"MD013": false,
"ul-indent": {
"indent": 4
}
}

23
.github/workflows/check-markdown.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: check-markdown
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tj-actions/changed-files@v45
id: changed-files
with:
files: '**/*.md'
separator: ","
- uses: DavidAnson/markdownlint-cli2-action@v17
if: steps.changed-files.outputs.any_changed == 'true'
with:
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ","
config: ./.github/.markdownlint.json

View file

@ -1,4 +1,4 @@
name: ci name: mkdocs-build
on: on:
push: push:
branches: branches: