Skip to content

Commit

Permalink
chore: more debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
RogWilco committed Oct 16, 2024
1 parent 6e3ac1d commit be1e7e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/actions/runWorkflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
)

func RunWorkflow() error {
fmt.Println("foo")
g, err := initAction()
if err != nil {
return err
Expand Down Expand Up @@ -65,6 +66,8 @@ func RunWorkflow() error {

if pr != nil {
os.Setenv("GH_PULL_REQUEST", *pr.URL)
fmt.Println(fmt.Sprintf("Grabbing PR URL: %s", *pr.URL))

logging.Info("Grabbing PR URL: %s", *pr.URL)
logging.Info("PR HTML URL: %s", *pr.HTMLURL)
}
Expand Down Expand Up @@ -199,6 +202,8 @@ func RunWorkflow() error {

success = true

fmt.Println(fmt.Sprintf("GH_PULL_REQUEST: %s", os.Getenv("GH_PULL_REQUEST")))

return nil
}

Expand Down Expand Up @@ -261,7 +266,7 @@ func finalize(inputs finalizeInputs) error {
return err
}

if pr.URL != nil {
if pr != nil {
os.Setenv("GH_PULL_REQUEST", *pr.URL)
logging.Info("Grabbing PR URL: %s", *pr.URL)
logging.Info("PR HTML URL: %s", *pr.HTMLURL)
Expand Down

0 comments on commit be1e7e1

Please sign in to comment.