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

4
lib/entry-points.js generated
View File

@@ -146401,8 +146401,8 @@ var persistInputs = function(env = getEnv()) {
var restoreInputs = function() {
try {
const persistedInputsValue = core3.getState(persistedInputsKey);
const persistedInputs = JSON.parse(persistedInputsValue);
if (persistedInputs) {
if (persistedInputsValue) {
const persistedInputs = JSON.parse(persistedInputsValue);
for (const [name, value] of persistedInputs) {
process.env[name] = value;
}

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;
}