mirror of
https://github.com/google-github-actions/auth.git
synced 2026-06-06 07:47:04 +00:00
Only emit a warning if the envvar has changed (#245)
This commit is contained in:
parent
400b51b0c2
commit
23620afd0f
2 changed files with 2 additions and 2 deletions
2
dist/main/index.js
vendored
2
dist/main/index.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -298,7 +298,7 @@ async function main() {
|
|||
*/
|
||||
function exportVariableAndWarn(key: string, value: string) {
|
||||
const existing = process.env[key];
|
||||
if (existing) {
|
||||
if (existing && existing !== value) {
|
||||
const old = JSON.stringify(existing);
|
||||
logWarning(`Overwriting existing environment variable ${key} (was: ${old})`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue