Create JS action

This commit is contained in:
Colin McDonnell
2025-08-27 16:53:48 -07:00
parent 2cacf2ada3
commit c5b1e63811
10 changed files with 549 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
import * as core from "@actions/core";
//#region index.ts
try {
const message = core.getInput("message") || "Hello from Pullfrog Action!";
console.log(`🐸 ${message}`);
core.info(`Action executed successfully: ${message}`);
core.setOutput("message", message);
} catch (error) {
const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
core.setFailed(`Action failed: ${errorMessage}`);
}
//#endregion