Skip to content

Commit 9e61de4

Browse files
committed
delete only if there is comment-id
1 parent 89cb9da commit 9e61de4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/pr-metadata-docs-and-deps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ jobs:
196196
body-includes: '## 📚 Documentation Check Results'
197197
- name: Delete existing docs comment
198198
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
199+
if: steps.find-comment.outputs.comment-id != ''
199200
with:
200201
script: |
201202
github.rest.issues.deleteComment({
@@ -379,6 +380,7 @@ jobs:
379380
body-includes: '## 🔒 Cargo Deny Results'
380381
- name: Delete existing dependency check comment
381382
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
383+
if: steps.find-comment.outputs.comment-id != ''
382384
with:
383385
script: |
384386
github.rest.issues.deleteComment({

0 commit comments

Comments
 (0)