add delete comment

This commit is contained in:
rahulpinto19
2026-02-17 10:20:52 +00:00
parent 47f5683745
commit 62b64148bb
2 changed files with 9 additions and 1068 deletions

View File

@@ -90,13 +90,15 @@ jobs:
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 != ''
run: |
gh api \
--method DELETE \
-H "Accept: application/vnd.github+json" \
/repos/${{ github.repository }}/issues/comments/${{ steps.find-comment.outputs.comment-id }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare Report
if: env.HAS_CHANGES == 'true' && steps.lychee-check.outcome == 'failure'