Skip to content

Commit 0271b2f

Browse files
authored
fix: run_shell - use correct key when using ::set-out(put)-json
Right now it was matching `-json` instead of the actual key. Signed-off-by: Rafael Matias <rafael@skyle.net>
1 parent 1a696a7 commit 0271b2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • pkg/coordinator/tasks/run_shell

pkg/coordinator/tasks/run_shell/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ func (t *Task) parseOutputVars(line string) bool {
261261
if err != nil {
262262
t.logger.Warnf("error parsing ::set-output-json expression: %v", err.Error())
263263
} else {
264-
t.ctx.Outputs.SetVar(match[2], varValue)
264+
t.ctx.Outputs.SetVar(match[3], varValue)
265265
t.logger.Infof("set output %v: (json) %v", match[3], varValue)
266266

267267
return true

0 commit comments

Comments
 (0)