mirror of
https://github.com/nektos/act.git
synced 2024-09-11 04:25:30 +03:00
fix: favor command-line over files (#2274)
This impacts: - envs - inputs - secrets - vars
This commit is contained in:
parent
ac13a1b20d
commit
89e3c14649
@ -305,7 +305,9 @@ func readEnvs(path string, envs map[string]string) bool {
|
||||
log.Fatalf("Error loading from %s: %v", path, err)
|
||||
}
|
||||
for k, v := range env {
|
||||
envs[k] = v
|
||||
if _, ok := envs[k]; !ok {
|
||||
envs[k] = v
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user