From 2f839498abc6c00b60fb548377e2518b457ac402 Mon Sep 17 00:00:00 2001 From: Eric Hartmann <112486+ehartmann@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:06:57 +0100 Subject: [PATCH] Ensure that "isPost" condition is correctly set when there is an exception Fix PR #122 --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7288597..097c893 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,6 @@ import { cleanup, run } from "./lib/setup-cloudflare-warp"; // Main if (!isPost) { await run(); - core.saveState("isPost", "true"); } // Post else { @@ -17,4 +16,8 @@ import { cleanup, run } from "./lib/setup-cloudflare-warp"; } catch (error) { core.setFailed(error.message); } + + if (!isPost) { + core.saveState("isPost", "true"); + } })();