From 99e84dd39353b3cee45c894e8f49830a9dd7e2c7 Mon Sep 17 00:00:00 2001 From: rahulpinto19 Date: Tue, 17 Feb 2026 09:29:19 +0000 Subject: [PATCH] filename with space handled --- .github/workflows/link_checker_workflow.yaml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/link_checker_workflow.yaml b/.github/workflows/link_checker_workflow.yaml index f7948eaa53a..10b3c8afd5b 100644 --- a/.github/workflows/link_checker_workflow.yaml +++ b/.github/workflows/link_checker_workflow.yaml @@ -50,7 +50,7 @@ jobs: echo "CHECK_FILES<> $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