Skip to content

Commit 89e3c14

Browse files
authored
fix: favor command-line over files (#2274)
This impacts: - envs - inputs - secrets - vars
1 parent ac13a1b commit 89e3c14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/root.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,9 @@ func readEnvs(path string, envs map[string]string) bool {
305305
log.Fatalf("Error loading from %s: %v", path, err)
306306
}
307307
for k, v := range env {
308-
envs[k] = v
308+
if _, ok := envs[k]; !ok {
309+
envs[k] = v
310+
}
309311
}
310312
return true
311313
}

0 commit comments

Comments
 (0)