Co-authored-by: Mark Glines <mark@glines.org> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/405 Reviewed-by: Jason Song <i@wolfogre.com> Co-authored-by: infinoid <infinoid@noreply.gitea.com> Co-committed-by: infinoid <infinoid@noreply.gitea.com>
This commit is contained in:
parent
1e940f028b
commit
934471813a
1 changed files with 3 additions and 0 deletions
|
@ -88,6 +88,9 @@ func LoadDefault(file string) (*Config, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("read env file %q: %w", cfg.Runner.EnvFile, err)
|
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 {
|
for k, v := range envs {
|
||||||
cfg.Runner.Envs[k] = v
|
cfg.Runner.Envs[k] = v
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue