Skip to content

Commit 8790c9b

Browse files
author
R
authored
fix: add GITHUB_STEP_SUMMARY (#1607)
1 parent b7a9eb9 commit 8790c9b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

pkg/runner/step.go

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,22 @@ func runStepExecutor(step step, stage stepStage, executor common.Executor) commo
101101

102102
// Prepare and clean Runner File Commands
103103
actPath := rc.JobContainer.GetActPath()
104+
104105
outputFileCommand := path.Join("workflow", "outputcmd.txt")
105-
stateFileCommand := path.Join("workflow", "statecmd.txt")
106-
pathFileCommand := path.Join("workflow", "pathcmd.txt")
107-
envFileCommand := path.Join("workflow", "envs.txt")
108106
(*step.getEnv())["GITHUB_OUTPUT"] = path.Join(actPath, outputFileCommand)
107+
108+
stateFileCommand := path.Join("workflow", "statecmd.txt")
109109
(*step.getEnv())["GITHUB_STATE"] = path.Join(actPath, stateFileCommand)
110+
111+
pathFileCommand := path.Join("workflow", "pathcmd.txt")
110112
(*step.getEnv())["GITHUB_PATH"] = path.Join(actPath, pathFileCommand)
113+
114+
envFileCommand := path.Join("workflow", "envs.txt")
111115
(*step.getEnv())["GITHUB_ENV"] = path.Join(actPath, envFileCommand)
116+
117+
summaryFileCommand := path.Join("workflow", "SUMMARY.md")
118+
(*step.getEnv())["GITHUB_STEP_SUMMARY"] = path.Join(actPath, summaryFileCommand)
119+
112120
_ = rc.JobContainer.Copy(actPath, &container.FileEntry{
113121
Name: outputFileCommand,
114122
Mode: 0o666,
@@ -120,6 +128,9 @@ func runStepExecutor(step step, stage stepStage, executor common.Executor) commo
120128
Mode: 0o666,
121129
}, &container.FileEntry{
122130
Name: envFileCommand,
131+
Mode: 0666,
132+
}, &container.FileEntry{
133+
Name: summaryFileCommand,
123134
Mode: 0o666,
124135
})(ctx)
125136

0 commit comments

Comments
 (0)