Skip to content

Commit

Permalink
Handle plan preview workflow's error and exit with error status code
Browse files Browse the repository at this point in the history
Signed-off-by: Takumaron <tennis.takumax@gmail.com>
  • Loading branch information
TakumaKurosawa committed Nov 10, 2023
1 parent 88d7fb6 commit f068af8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tool/actions-plan-preview/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ func main() {
doComment(failureBadgeURL + "\nUnable to run plan-preview for a closed pull request.")
return
}
body := makeCommentBody(event, result)
doComment(failureBadgeURL + body)
log.Fatal("plan-preview result has error")
}

// Find comments we sent before
Expand Down

0 comments on commit f068af8

Please sign in to comment.