MCPcopy
hub / github.com/nektos/act / processRunnerSummaryCommand

Function processRunnerSummaryCommand

pkg/runner/step.go:56–80  ·  view source on GitHub ↗
(ctx context.Context, fileName string, rc *RunContext)

Source from the content-addressed store, hash-verified

54}
55
56func processRunnerSummaryCommand(ctx context.Context, fileName string, rc *RunContext) error {
57 if common.Dryrun(ctx) {
58 return nil
59 }
60 pathTar, err := rc.JobContainer.GetContainerArchive(ctx, path.Join(rc.JobContainer.GetActPath(), fileName))
61 if err != nil {
62 return err
63 }
64 defer pathTar.Close()
65
66 reader := tar.NewReader(pathTar)
67 _, err = reader.Next()
68 if err != nil && err != io.EOF {
69 return err
70 }
71 summary, err := io.ReadAll(reader)
72 if err != nil {
73 return err
74 }
75 if len(summary) == 0 {
76 return nil
77 }
78 common.Logger(ctx).WithFields(logrus.Fields{"command": "summary", "content": string(summary)}).Infof(" \U00002699 Summary - %s", string(summary))
79 return nil
80}
81
82func processRunnerEnvFileCommand(ctx context.Context, fileName string, rc *RunContext, setter func(context.Context, map[string]string, string)) error {
83 env := map[string]string{}

Callers 1

runStepExecutorFunction · 0.85

Calls 5

DryrunFunction · 0.92
LoggerFunction · 0.92
GetContainerArchiveMethod · 0.65
GetActPathMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…