Fix trying to read from non-existent log file
This commit is contained in:
parent
3f3c8f2b26
commit
1ddebf6396
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue