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 92d8cf3 commit 1403e6b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.base.ref }}

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

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

0 comments on commit 1403e6b

Please sign in to comment.