1
1
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:
Josh Soref 2024-04-10 17:49:39 -04:00 committed by GitHub
parent ac13a1b20d
commit 89e3c14649
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
}