There was an error while loading. Please reload this page.
1 parent 9f86209 commit 9ea1226Copy full SHA for 9ea1226
1 file changed
.github/workflows/terraform-plan.yml
@@ -60,8 +60,18 @@ jobs:
60
- name: Create tf-summarize markdown file
61
run: tf-summarize -md tfplan >> tf-summary.md
62
63
- - name: Create PR comment with course-grained plan summary
+ - name: Check for existing 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
+ direction: last
71
+
72
+ - name: Create or update PR comment with course-grained plan summary
73
uses: peter-evans/create-or-update-comment@e8674b075228eee787fea43ef493e45ece1004c9 # v5.0.0
74
with:
75
+ comment-id: ${{ steps.fc.outputs.comment-id }}
76
issue-number: ${{ github.event.number }}
77
body-path: "./terraform/tf-summary.md"
0 commit comments