mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-04 14:35:32 +00:00
Fix: GITHUB_PATH should prepend (#690)
* GITHUB_PATH is prepend https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path * Check for replacing system binaries Co-authored-by: Josh Soref <[email protected]>
This commit is contained in:
1 parent
38f6dfb49a
commit
29ea8cfc4e
2 files changed
+23
-3
No files matched your search
@@ -399,7 +399,7 @@ func (cr *containerReference) extractPath(env *map[string]string) common.Executo
|
||||
s := bufio.NewScanner(reader)
|
||||
for s.Scan() {
|
||||
line := s.Text()
|
||||
localEnv["PATH"] = fmt.Sprintf("%s:%s", localEnv["PATH"], line)
|
||||
localEnv["PATH"] = fmt.Sprintf("%s:%s", line, localEnv["PATH"])
|
||||
}
|
||||
|
||||
env = &localEnv
|
||||
|
||||
Reference in new issue
Block a user