Skip to content

Commit

Permalink
Update build logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cball committed Apr 12, 2020
1 parent d04650e commit 68c140d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ function setEnvWithValue(key, contextOrBranch, mode) {

if (process.env[prefixedEnvVar]) {
foundOne = true;
console.log(`Setting ${prefixedEnvVar} to ${key}.`);
console.log(`Setting ${key} to the value from ${prefixedEnvVar}.`);
process.env[key] = process.env[prefixedEnvVar];
}
} else {
const suffixedEnvVar = `${key}_${contextOrBranch}`;

if (process.env[suffixedEnvVar]) {
foundOne = true;
console.log(`Setting ${suffixedEnvVar} to ${key}.`);
console.log(`Setting ${key} to the value from ${suffixedEnvVar}.`);
process.env[key] = process.env[suffixedEnvVar];
}
}
Expand Down

0 comments on commit 68c140d

Please sign in to comment.