From c2a907f30df5e6b15a7793095993a247d16e51a4 Mon Sep 17 00:00:00 2001 From: Hugo MARTIN Date: Fri, 8 Jan 2021 09:59:17 +0100 Subject: [PATCH] try about gha states --- lib/main.js | 1 + src/main.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/main.js b/lib/main.js index 3ea06511..31e41a4e 100644 --- a/lib/main.js +++ b/lib/main.js @@ -56,6 +56,7 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () { try { console.log(core.getState("foo")); core.saveState("foo", "bar"); + return; const variables = core.getInput('variables'); const delimiter = core.getInput('delimiter'); core.debug(`Received variables: ${variables}`); // debug is only output if you set the secret `ACTIONS_RUNNER_DEBUG` to true https://github.com/actions/toolkit/blob/master/docs/action-debugging.md#how-to-access-step-debug-logs diff --git a/src/main.ts b/src/main.ts index 19fc4ca0..e6329a5a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,6 +27,7 @@ const run = async (): Promise => { try { console.log(core.getState("foo")); core.saveState("foo", "bar"); + return; const variables: string = core.getInput('variables'); const delimiter: string = core.getInput('delimiter'); core.debug(`Received variables: ${variables}`); // debug is only output if you set the secret `ACTIONS_RUNNER_DEBUG` to true https://github.com/actions/toolkit/blob/master/docs/action-debugging.md#how-to-access-step-debug-logs