diff --git a/tool/actions-plan-preview/main.go b/tool/actions-plan-preview/main.go index 0bf0ecdcc3..bcb94c95fe 100644 --- a/tool/actions-plan-preview/main.go +++ b/tool/actions-plan-preview/main.go @@ -139,6 +139,10 @@ func main() { doComment(failureBadgeURL + "\nUnable to run plan-preview for a closed pull request.") return } + body := makeCommentBody(event, result) + doComment(failureBadgeURL + "\n" + body) + log.Println("plan-preview result has error") + os.Exit(1) } // Find comments we sent before