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"); + } })();