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 26, 2024
1 parent 9495887 commit d80b1ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/markdown-lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: markdown-linting

on:

push:
branches:
- '**'
Expand All @@ -20,7 +19,7 @@ jobs:
continue-on-error: true
run: |
echo "CHANGED_FILES<<EOF" >> $GITHUB_ENV
gh pr diff ${{ github.event.number }} --name-only | grep '\.md$' | xargs -i echo "{}" >> $GITHUB_ENV
gh pr diff ${{ github.event.number }} --name-only | sed -e 's|$|,|' | xargs -i echo "{}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -29,4 +28,4 @@ jobs:
- name: Markdown Linter
uses: DavidAnson/markdownlint-cli2-action@v15
with:
globs: ${{ env.CHANGED_FILES}}
globs: ${{ env.CHANGED_FILES }}

0 comments on commit d80b1ee

Please sign in to comment.