mirror of
https://github.com/github/codeql-action.git
synced 2026-11-06 21:19:42 +00:00
Name type in persistInputs
This commit is contained in:
@@ -407,6 +407,7 @@ export async function runTool(
|
||||
return stdout;
|
||||
}
|
||||
|
||||
type PersistedInputs = Array<[string, string | undefined]>;
|
||||
const persistedInputsKey = "persisted_inputs";
|
||||
|
||||
/**
|
||||
@@ -416,7 +417,7 @@ const persistedInputsKey = "persisted_inputs";
|
||||
*/
|
||||
export const persistInputs = function (env: Env = getEnv()) {
|
||||
const entries = env.entries();
|
||||
const inputEnvironmentVariables = entries.filter(([name]) =>
|
||||
const inputEnvironmentVariables: PersistedInputs = entries.filter(([name]) =>
|
||||
name.startsWith("INPUT_"),
|
||||
);
|
||||
core.saveState(persistedInputsKey, JSON.stringify(inputEnvironmentVariables));
|
||||
|
||||
Reference in New Issue
Block a user