mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-04 22:37:55 +00:00
Co-authored-by: Mark Glines <[email protected]> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/405 Reviewed-by: Jason Song <[email protected]> Co-authored-by: infinoid <[email protected]> Co-committed-by: infinoid <[email protected]>
This commit is contained in:
1 parent
1e940f028b
commit
934471813a
1 file changed
+3
@@ -88,6 +88,9 @@ func LoadDefault(file string) (*Config, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("read env file %q: %w", cfg.Runner.EnvFile, err)
|
||||
}
|
||||
if cfg.Runner.Envs == nil {
|
||||
cfg.Runner.Envs = map[string]string{}
|
||||
}
|
||||
for k, v := range envs {
|
||||
cfg.Runner.Envs[k] = v
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user