mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-11-30 11:44:23 +01:00
feat: add translate-env-variables option
This commit is contained in:
6 files changed
+74
-2
No files matched your search
@@ -60,6 +60,7 @@ export function translateEnvVariables() {
|
||||
|
||||
for (const envVar of envVars) {
|
||||
if (process.env[envVar]) {
|
||||
core.info(`Translating ${envVar} to input ${envVar.replace(/_/g, '-').toLowerCase()}`);
|
||||
const inputKey = `INPUT_${envVar.replace(/_/g, '-')}`;
|
||||
process.env[inputKey] = process.env[inputKey] || process.env[envVar];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user