filename with space handled

This commit is contained in:
rahulpinto19
2026-02-17 09:29:19 +00:00
parent 1b5d55b9ca
commit 99e84dd393

View File

@@ -50,7 +50,7 @@ jobs:
echo "CHECK_FILES<<EOF" >> $GITHUB_ENV
echo "$FILES_QUOTED" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
echo $"CHECK_FILES set to: $CHECK_FILES"
echo "HAS_CHANGES=true" >> $GITHUB_ENV
fi
@@ -84,20 +84,20 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Find comment
uses: peter-evans/find-comment@v3
uses: peter-evans/find-comment@v4
id: find-comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: "## Link Resolution Note"
- name: Delete comment on success
if: steps.lychee-check.outcome == 'success' && steps.find-comment.outputs.comment-id != ''
uses: detomarco/delete-comment@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
comment-id: ${{ steps.find-comment.outputs.comment-id }}
# - name: Delete comment on success
# if: steps.lychee-check.outcome == 'success' && steps.find-comment.outputs.comment-id != ''
# uses: detomarco/delete-comment@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# repository: ${{ github.repository }}
# comment-id: ${{ steps.find-comment.outputs.comment-id }}
- name: Prepare Report
if: env.HAS_CHANGES == 'true' && steps.lychee-check.outcome == 'failure'
@@ -109,8 +109,6 @@ jobs:
echo "See [Link Checking and Fixing with Lychee](https://github.com/googleapis/genai-toolbox/blob/main/DEVELOPER.md#link-checking-and-fixing-with-lychee) for more details." >> full-report.md
echo "---" >> full-report.md
echo "### Broken Links Found" >> full-report.md
# Clean the report (remove redirects) AND append it to the file
sed -E '/(Redirect|Redirects per input)/d' lychee-report.md >> full-report.md