From 8f223f2a97c1bd7531be016d3b3d33aa12369e3f Mon Sep 17 00:00:00 2001 From: Jimmy Debe <91767824+jimstir@users.noreply.github.com> Date: Fri, 29 Mar 2024 02:01:58 -0400 Subject: [PATCH] Update markdown-lint.yml --- .github/workflows/markdown-lint.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index d4e665366..ddd45ad9a 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -20,12 +20,7 @@ jobs: continue-on-error: true run: | echo "CHANGED_FILES<> $GITHUB_ENV - gh pr diff ${{ github.event.number }} --name-only | sed -e 's|$|,|' | xargs -i echo "{}" >> $GITHUB_ENV + gh pr diff ${{ github.event.number }} --name-only | grep '\.md$' | xargs -i echo "{}" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - - - name: Markdown Linter - uses: DavidAnson/markdownlint-cli2-action@v15 - with: - globs: ${{ env.CHANGED_FILES }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}