emitCIErrorAnnotation emits an error annotation for supported CI providers.
(err error)
| 47 | |
| 48 | // emitCIErrorAnnotation emits an error annotation for supported CI providers. |
| 49 | func emitCIErrorAnnotation(err error) { |
| 50 | if isGA, _ := strconv.ParseBool(os.Getenv("GITHUB_ACTIONS")); !isGA { |
| 51 | return |
| 52 | } |
| 53 | if e, ok := err.(*errors.TaskRunError); ok { |
| 54 | fmt.Fprintf(os.Stdout, "::error title=Task '%s' failed::%v\n", e.TaskName, e.Err) |
| 55 | return |
| 56 | } |
| 57 | fmt.Fprintf(os.Stdout, "::error title=Task failed::%v\n", err) |
| 58 | } |
| 59 | |
| 60 | func run() error { |
| 61 | log := &logger.Logger{ |
no outgoing calls
no test coverage detected
searching dependent graphs…