Skip to content

Commit

Permalink
Ensure that "isPost" condition is correctly set when there is an exce…
Browse files Browse the repository at this point in the history
…ption

Fix PR #122
  • Loading branch information
ehartmann authored and F21 committed Dec 16, 2024
1 parent 791fd0f commit 4ce9a27
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { cleanup, run } from "./lib/setup-cloudflare-warp";
// Main
if (!isPost) {
await run();
core.saveState("isPost", "true");
}
// Post
else {
Expand All @@ -17,4 +16,8 @@ import { cleanup, run } from "./lib/setup-cloudflare-warp";
} catch (error) {
core.setFailed(error.message);
}

if (!isPost) {
core.saveState("isPost", "true");
}
})();

0 comments on commit 4ce9a27

Please sign in to comment.