mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-20 11:56:47 +08:00
fix: GITHUB_ENV and GITHUB_OUTPUT allow larger lines (#112)
* Specify larger buffer
This commit is contained in:
@@ -287,6 +287,7 @@ func readArgsFile(file string, split bool) []string {
|
||||
}
|
||||
}()
|
||||
scanner := bufio.NewScanner(f)
|
||||
scanner.Buffer(nil, 1024*1024*1024) // increase buffer to 1GB to avoid scanner buffer overflow
|
||||
for scanner.Scan() {
|
||||
arg := os.ExpandEnv(strings.TrimSpace(scanner.Text()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user