From ab468aa32ff2acc70c8c194523a04f6357d2ecd2 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 27 Aug 2025 18:15:23 -0700 Subject: [PATCH] Tweak --- index.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/index.ts b/index.ts index 078db07..b935c5f 100644 --- a/index.ts +++ b/index.ts @@ -1,18 +1,17 @@ -import * as core from '@actions/core'; +import * as core from "@actions/core"; try { // Get the message input parameter, with a default fallback - const message = core.getInput('message') || 'Hello from Pullfrog Action!'; - + const message = core.getInput("message") || "Hello from Pullfrog Action!"; + // Print the message to console and GitHub Actions logs console.log(`🐸 Pullfrog says: ${message}`); core.info(`Action executed successfully with message: ${message}`); - + // Set an output for potential use by other actions - core.setOutput('message', message); - + core.setOutput("message", message); } catch (error) { // Handle any errors and fail the action - const errorMessage = error instanceof Error ? error.message : 'Unknown error occurred'; + const errorMessage = error instanceof Error ? error.message : "Unknown error occurred"; core.setFailed(`Action failed: ${errorMessage}`); -} \ No newline at end of file +}