From 71a72222468044c804c8f732d4e77071751202b3 Mon Sep 17 00:00:00 2001 From: Bill Barry Date: Thu, 22 May 2025 15:32:58 -0400 Subject: [PATCH] process inputs The summary and pr inputs from the yml file are strings and need to be converted to boolean values according to the documented input argument values. --- src/core/action-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/action-handler.ts b/src/core/action-handler.ts index c84362c..1a4304f 100644 --- a/src/core/action-handler.ts +++ b/src/core/action-handler.ts @@ -11,8 +11,8 @@ export async function runAction(): Promise { required: true }) const jsonFilePath = core.getInput('json-file-path') - const summary = core.getInput('summary') - const pullRequest = core.getInput('pull-request') + const summary = core.getInput('summary')?.toLowerCase() !== 'false' + const pullRequest = core.getInput('pull-request')?.toLowerCase() === 'true' const templateSource = readTemplate(templatePath) const jsonData = jsonFilePath ? readJsonFile(jsonFilePath) : {}