mirror of
https://github.com/github/codeql-action.git
synced 2026-12-01 11:22:27 +08:00
Restore previous restoreInputs behaviour
This commit is contained in:
2 files changed
+4
-4
No files matched your search
Generated
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
+2
-2
@@ -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