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 21, 2024
1 parent 017cc09 commit 0eef165
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ jobs:
- name: Get changed files
id: changed_files
run: |
git diff --name-only -r HEAD^1 HEAD | while read -r file; do
echo "*/${file}"
done
echo "::set-output name=files::$(git show --pretty="" --name-only ${{ github.sha }} | grep '\.md$' | tr '\n' ',' | sed 's/,$//')"
- name: Markdown Linter
uses: DavidAnson/markdownlint-cli2-action@v15
with:
files: ${{ steps.changed_files.outputs.stdout }}
globs: ${{ steps.changed_files.outputs.files }}

0 comments on commit 0eef165

Please sign in to comment.