mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Restore previous restoreInputs behaviour
This commit is contained in:
4
lib/entry-points.js
generated
4
lib/entry-points.js
generated
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user