fix: favor command-line over files (#2274)

This impacts:
- envs
- inputs
- secrets
- vars
This commit is contained in:
Josh Soref
2024-04-10 21:49:39 +00:00
committed by GitHub
parent ac13a1b20d
commit 89e3c14649
+3 -1
View File
@@ -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
}