MCPcopy Create free account
hub / github.com/bytebase/bytebase / WriteOutput

Function WriteOutput

action/command/output/output.go:16–23  ·  view source on GitHub ↗

WriteOutput writes the output JSON and GitHub step summary if applicable.

(w *world.World)

Source from the content-addressed store, hash-verified

14
15// WriteOutput writes the output JSON and GitHub step summary if applicable.
16func 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.
26func writeOutputJSON(w *world.World) error {

Callers 2

runCheckFunction · 0.92
runRolloutFunction · 0.92

Calls 3

writeOutputJSONFunction · 0.85
writeGitHubStepSummaryFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected