From 39fdd66a3f305598e245e6d02669f7243ad1c6ec Mon Sep 17 00:00:00 2001 From: rahulpinto19 Date: Mon, 16 Feb 2026 05:54:32 +0000 Subject: [PATCH] add a comment in the pr --- .github/workflows/link_checker_workflow.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/link_checker_workflow.yaml b/.github/workflows/link_checker_workflow.yaml index e6a038ad82..f5a1e98e68 100644 --- a/.github/workflows/link_checker_workflow.yaml +++ b/.github/workflows/link_checker_workflow.yaml @@ -48,7 +48,6 @@ jobs: fi - - name: Restore lychee cache if: env.HAS_CHANGES == 'true' uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5 @@ -77,6 +76,13 @@ jobs: debug: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create PR Comment + if: env.HAS_CHANGES == 'true' && steps.lychee-check.outputs.status != '0' + uses: peter-evans/create-or-update-comment@v4 + with: + issue-number: ${{ github.event.pull_request.number }} + body-path: lychee-report.md + edit-mode: replace - name: Display Failure Report # Run this ONLY if the link checker failed