diff --git a/main.go b/main.go index fa11933..12ff557 100644 --- a/main.go +++ b/main.go @@ -82,7 +82,11 @@ func main() { githubactions.Fatalf("Error while creating pr: %v", err.Error()) } - fmt.Printf("Created PR with id %d\n", pr.ID) + if pr != nil { + fmt.Printf("Created PR with id %d\n", pr.ID) + } else { + fmt.Printf("No PR created\n") + } githubactions.SetOutput("pull-request-number", strconv.FormatInt(pr.Index, 10)) githubactions.SetOutput("pull-request-url", pr.URL)