We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af6eaef commit ebc1cafCopy full SHA for ebc1caf
.github/workflows/ci.yml
@@ -23,10 +23,11 @@ jobs:
23
# source: https://stackoverflow.com/a/74268200
24
run: |
25
if ${{ github.event_name == 'pull_request' }}; then
26
- echo "changed_files=$(git diff --name-only -r HEAD^1 HEAD | grep -E '\.md$' | xargs)" >> $GITHUB_ENV
+ changed_files=$(git diff --name-only -r HEAD^1 HEAD | xargs)
27
else
28
- echo "changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | grep -E '\.md$' | xargs)" >> $GITHUB_ENV
+ changed_files=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs)
29
fi
30
+ echo "changed_files=$(echo $changed_files | tr ' ' '\n' | grep -E '\.md$' | xargs)" >> $GITHUB_OUTPUT
31
- name: Lint
32
uses: avto-dev/markdown-lint@v1
33
with:
0 commit comments