Restore previous restoreInputs behaviour

This commit is contained in:
Michael B. Gale
2026-09-22 19:09:07 +01:00
parent 660f7c5f24
commit fa4712895b
2 changed files with 4 additions and 4 deletions

View File

@@ -416,9 +416,9 @@ export const persistInputs = function (env: Env = getEnv()) {
export const restoreInputs = function () {
try {
const persistedInputsValue = core.getState(persistedInputsKey);
const persistedInputs = JSON.parse(persistedInputsValue);
if (persistedInputsValue) {
const persistedInputs = JSON.parse(persistedInputsValue);
if (persistedInputs) {
for (const [name, value] of persistedInputs) {
process.env[name] = value;
}