Skip to content

Commit 3392b2d

Browse files
committed
fix: update existing comment whenever possible
1 parent 9f86209 commit 3392b2d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/terraform-plan.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,17 @@ jobs:
6060
- name: Create tf-summarize markdown file
6161
run: tf-summarize -md tfplan >> tf-summary.md
6262

63+
- name: Find Comment
64+
uses: peter-evans/find-comment@b30e6a3c0ed37e7c023ccd3f1db5c6c0b0c23aad # v4.0.0
65+
id: fc
66+
with:
67+
issue-number: ${{ github.event.pull_request.number }}
68+
comment-author: "github-actions[bot]"
69+
body-includes: CHANGE
70+
6371
- name: Create PR comment with course-grained plan summary
6472
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
6573
with:
74+
comment-id: ${{ steps.fc.outputs.comment-id }}
6675
issue-number: ${{ github.event.number }}
6776
body-path: "./terraform/tf-summary.md"

0 commit comments

Comments
 (0)