diff --git a/dist/index.js b/dist/index.js index 8f9189e..62e2090 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27783,7 +27783,7 @@ function addVCVARSEnv() { for (let [k, v] of newEnv) { if (process.env[k] !== v) { if (/^Path$/i.test(k)) { - const newPathStr = v.replace(`$(path.delimiter)${process.env['Path']}`, '') + const newPathStr = v.replace(`${path.delimiter}${process.env['Path']}`, '') newPathEntries = newPathStr.split(path.delimiter) } else { core.exportVariable(k, v) diff --git a/windows.js b/windows.js index fcc11f4..729855b 100644 --- a/windows.js +++ b/windows.js @@ -123,7 +123,7 @@ export function addVCVARSEnv() { for (let [k, v] of newEnv) { if (process.env[k] !== v) { if (/^Path$/i.test(k)) { - const newPathStr = v.replace(`$(path.delimiter)${process.env['Path']}`, '') + const newPathStr = v.replace(`${path.delimiter}${process.env['Path']}`, '') newPathEntries = newPathStr.split(path.delimiter) } else { core.exportVariable(k, v)