Skip to content

Commit 5b8ae33

Browse files
committed
Name type in persistInputs
1 parent d3de9fd commit 5b8ae33

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/actions-util.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ export async function runTool(
407407
return stdout;
408408
}
409409

410+
type PersistedInputs = Array<[string, string | undefined]>;
410411
const persistedInputsKey = "persisted_inputs";
411412

412413
/**
@@ -416,7 +417,7 @@ const persistedInputsKey = "persisted_inputs";
416417
*/
417418
export const persistInputs = function (env: Env = getEnv()) {
418419
const entries = env.entries();
419-
const inputEnvironmentVariables = entries.filter(([name]) =>
420+
const inputEnvironmentVariables: PersistedInputs = entries.filter(([name]) =>
420421
name.startsWith("INPUT_"),
421422
);
422423
core.saveState(persistedInputsKey, JSON.stringify(inputEnvironmentVariables));

0 commit comments

Comments
 (0)