Skip to content

Commit c95f1b3

Browse files
committed
Fixed filenames format
1 parent 99cd3f1 commit c95f1b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/check-pr-links.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ jobs:
5050
id: changed-files
5151
run: |
5252
files=$(git diff --name-only origin/${{ github.event.pull_request.base.ref }} ${{ github.head_ref }} | grep '\.md$' || true)
53+
files=$(echo "$files" | tr '\n' ' ')
5354
echo "changed_files=$files" >> $GITHUB_ENV
5455
5556
# Step 6: Run Lychee on changed files only (with fragments)
5657
- name: Run Lychee link checker
58+
if: ${{ env.changed_files != '' }}
5759
uses: lycheeverse/lychee-action@v2
5860
with:
5961
args: "--no-progress --include-fragments ${{ env.changed_files }}"

0 commit comments

Comments
 (0)