mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-03-15 09:20:58 -04:00
fix: prioritize explicit inputs over environment variables
This commit is contained in:
@@ -31,7 +31,8 @@ export function translateEnvVariables() {
|
||||
];
|
||||
for (const envVar of envVars) {
|
||||
if (process.env[envVar]) {
|
||||
process.env[`INPUT_${envVar.replace(/_/g, '-')}`] = process.env[envVar];
|
||||
const inputKey = `INPUT_${envVar.replace(/_/g, '-')}`;
|
||||
process.env[inputKey] = process.env[inputKey] || process.env[envVar];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user