Skip to content

Commit 7a0d8fa

Browse files
authored
Fix link check workflow (#2177)
1 parent 3e2f39e commit 7a0d8fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/reusable-link-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
run: |
2727
merge_base=$(git merge-base origin/${{ github.base_ref }} HEAD)
2828
# Using lychee's default extension filter here to match when it runs against all files
29-
modified_files=$(git diff --name-only $merge_base...${{ github.event.pull_request.head.sha }} \
29+
# Note: --diff-filter=d filters out deleted files
30+
modified_files=$(git diff --name-only --diff-filter=d $merge_base...${{ github.event.pull_request.head.sha }} \
3031
| grep -E '\.(md|mkd|mdx|mdown|mdwn|mkdn|mkdown|markdown|html|htm|txt)$' \
3132
| tr '\n' ' ' || true)
3233
echo "files=$modified_files" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)