Skip to content

Commit

Permalink
Log total time
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Apr 11, 2024
1 parent 8f14368 commit 1935935
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup-go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ func checkEnv(action *githubactions.Action) (workspace, gocache string) {
}

func main() {
start := time.Now()

flag.Parse()

action := githubactions.New()
Expand Down Expand Up @@ -136,4 +138,6 @@ func main() {
if err != nil {
action.Fatalf("Error walking directory: %s", err)
}

action.Infof("All done in %s.", time.Since(start))
}

0 comments on commit 1935935

Please sign in to comment.