diff --git a/plugin/github/workflow.go b/plugin/github/workflow.go index e06c21f..93e194c 100644 --- a/plugin/github/workflow.go +++ b/plugin/github/workflow.go @@ -124,16 +124,14 @@ func getOutputVariables(prevStepId, outputFile string, outputVars []string) step skip := len(outputFile) == 0 || len(outputVars) == 0 cmd := "" for _, outputVar := range outputVars { - cmd += fmt.Sprintf("print('%s'+'='+'${{ steps.%s.outputs.%s }}'); ", outputVar, prevStepId, outputVar) + cmd += fmt.Sprintf("%s=${{ steps.%s.outputs.%s }}\n", outputVar, prevStepId, outputVar) } - if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" { - cmd = fmt.Sprintf("python3 -c \"%s\" > %s", cmd, outputFile) - } else if runtime.GOOS == "windows" { + if runtime.GOOS == "windows" { cmd = fmt.Sprintf("python -c \"%s\"", outputVarWinScript( outputVars, prevStepId, outputFile)) } else { - cmd = fmt.Sprintf("python -c \"%s\" > %s", cmd, outputFile) + cmd = fmt.Sprintf("echo \"%s\" > %s", cmd, outputFile) } s := step{