Github Action - Markdown Linting
parent
f69d75ccbf
commit
bb0b447d12
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"MD013": false,
|
||||
"ul-indent": {
|
||||
"indent": 4
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
name: check-markdown
|
||||
on: [push, 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
|
|
@ -1,4 +1,4 @@
|
|||
name: ci
|
||||
name: mkdocs-build
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
Loading…
Reference in New Issue