WriteOutput writes the output JSON and GitHub step summary if applicable.
(w *world.World)
| 14 | |
| 15 | // WriteOutput writes the output JSON and GitHub step summary if applicable. |
| 16 | func WriteOutput(w *world.World) { |
| 17 | if err := writeOutputJSON(w); err != nil { |
| 18 | w.Logger.Error("failed to write output JSON", "error", err) |
| 19 | } |
| 20 | if err := writeGitHubStepSummary(w); err != nil { |
| 21 | w.Logger.Error("failed to write GitHub step summary", "error", err) |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | // writeOutputJSON writes the output map to the specified JSON file. |
| 26 | func writeOutputJSON(w *world.World) error { |
no test coverage detected