Skip to content

Commit

Permalink
Update markdown-lint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jimstir authored Mar 15, 2024
1 parent a1f1612 commit 4bd6071
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: New Files
uses: actions/checkout@v2

- name: Get changed files
id: changed_files
run: echo "::set-output name=files::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }})"


- name: Filter Markdown files
id: filter_files
run: echo "::set-output name=markdown_files::$(echo '${{ steps.changed_files.outputs.files }}' | grep '\.md$')"

- name: Markdown Linter
uses: DavidAnson/markdownlint-cli2-action@v15
with:
globs: '**/*.md'
globs: ${{ steps.filter_files.outputs.markdown_files }}

0 comments on commit 4bd6071

Please sign in to comment.