Skip to content

Commit

Permalink
Github Action - Markdown Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
swisskyrepo committed Nov 13, 2024
1 parent f69d75c commit bb0b447
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/.markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"MD013": false,
"ul-indent": {
"indent": 4
}
}
23 changes: 23 additions & 0 deletions .github/workflows/check-markdown.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: mkdocs-build
on:
workflow_dispatch:
push:
Expand Down

0 comments on commit bb0b447

Please sign in to comment.