From f82c88bb9c90862b46f39ab0ba4529bf01c5569c Mon Sep 17 00:00:00 2001 From: JD Cargile Date: Wed, 21 Feb 2024 11:45:12 -0700 Subject: [PATCH] fix: Evaluate verbose-logging as a bool --- action.yml | 2 +- src/main.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 5d9f670..5b737f5 100644 --- a/action.yml +++ b/action.yml @@ -22,7 +22,7 @@ inputs: required: false verbose-logging: description: 'Enable verbose logging' - default: false + default: 'false' required: false runs: using: 'node20' diff --git a/src/main.ts b/src/main.ts index c72528f..4f8b02f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -25,7 +25,8 @@ async function run(): Promise { core.getInput('notification-summary') || 'GitHub Action Notification' const notificationColor = core.getInput('notification-color') || '0b93ff' const timezone = core.getInput('timezone') || 'UTC' - const verboseLogging = core.getInput('verbose-logging') + const verboseLogging = + core.getInput('verbose-logging').toLowerCase() === 'true' const timestamp = moment() .tz(timezone) .format('dddd, MMMM Do YYYY, h:mm:ss a z')