mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-18 10:26:09 +00:00
Github Action - Markdown Linting for PR
This commit is contained in:
parent
118924f291
commit
d6ce9cd317
6
.github/.markdownlint.json
vendored
Normal file
6
.github/.markdownlint.json
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"MD013": false,
|
||||
"ul-indent": {
|
||||
"indent": 4
|
||||
}
|
||||
}
|
23
.github/workflows/check-markdown.yml
vendored
Normal file
23
.github/workflows/check-markdown.yml
vendored
Normal 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
|
@ -1,4 +1,4 @@
|
||||
name: ci
|
||||
name: mkdocs-build
|
||||
on:
|
||||
push:
|
||||
branches:
|
Loading…
Reference in New Issue
Block a user