Skip to content

Commit

Permalink
Delete and replace comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jhutchison-nava committed Feb 3, 2025
1 parent 4516008 commit df9968e
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,17 @@ jobs:
const existingComment = await findComment(issueNumber);
if (existingComment) {
await github.rest.issues.updateComment({
owner: context.repo.owner,
repo: context.repo.repo,
await github.rest.issues.deleteComment({
comment_id: existingComment.id,
body: body,
});
} else {
await github.rest.issues.createComment({
issue_number: issueNumber,
owner: context.repo.owner,
repo: context.repo.repo,
body: body,
});
}
}
await github.rest.issues.createComment({
issue_number: issueNumber,
owner: context.repo.owner,
repo: context.repo.repo,
body: body,
});
}
if (context.eventName === 'pull_request') {
Expand Down

0 comments on commit df9968e

Please sign in to comment.