Skip to content

Commit

Permalink
ci: add markdownlint-cli2-action@v11
Browse files Browse the repository at this point in the history
  • Loading branch information
WieeRd committed Aug 28, 2023
1 parent 09d76b5 commit 4476554
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: markdownlint
on: [push, pull_request]
jobs:
markdownlint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Get Changed Files
id: changed-files
uses: tj-actions/changed-files@v38
with:
files: '**/*.md'
separator: ','

- name: Lint Markdown Documents
uses: DavidAnson/markdownlint-cli2-action@v11
if: steps.changed-files.outputs.any_changed == 'true'
with:
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ','

0 comments on commit 4476554

Please sign in to comment.