Fix trying to read from non-existent log file

This commit is contained in:
Sam Coe 2021-04-12 16:03:50 -07:00
parent 3f3c8f2b26
commit 1ddebf6396
No known key found for this signature in database
GPG key ID: 8E322C20F811D086

View file

@ -498,6 +498,9 @@ func displayRunLog(io *iostreams.IOStreams, jobs []shared.Job, failed bool) erro
if failed && !shared.IsFailureState(step.Conclusion) {
continue
}
if step.Log == nil {
continue
}
prefix := fmt.Sprintf("%s\t%s\t", job.Name, step.Name)
f, err := step.Log.Open()
if err != nil {