From 9182f4160bd40d42d157d56b61831fd7ded70ed4 Mon Sep 17 00:00:00 2001 From: Vlad Kyrylenko <39014816+vlkyrylenko@users.noreply.github.com> Date: Fri, 3 Jan 2025 17:56:32 -0500 Subject: [PATCH] Replaced bool values with strings (#2) --- src/get-url.ts | 12 ++++++------ src/installer.ts | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/get-url.ts b/src/get-url.ts index 9e81039..0d12b57 100644 --- a/src/get-url.ts +++ b/src/get-url.ts @@ -1,13 +1,13 @@ export default function getURL( os: string, arch: string, - extended: boolean, - withdeploy: boolean, + extended: string, + withdeploy: string, version: string ): string { - const extendedStr = (extended: boolean): string => { - if (extended) { + const extendedStr = (extended: string): string => { + if (extended === 'true') { return 'extended_'; } else { return ''; @@ -16,8 +16,8 @@ export default function getURL( } }; - const deployStr = (deploy: boolean): string => { - if (deploy) { + const deployStr = (deploy: string): string => { + if (deploy === 'true') { return 'withdeploy_'; } else { return ''; diff --git a/src/installer.ts b/src/installer.ts index 97cf3f9..e501f91 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -44,10 +44,10 @@ export async function createBinDir(workDir: string): Promise { } export async function installer(version: string): Promise { - const extended: boolean = core.getInput('extended'); + const extended: string = core.getInput('extended'); core.debug(`Hugo extended: ${extended}`); - const withDeploy: boolean = core.getInput('withDeploy'); + const withDeploy: string = core.getInput('withDeploy'); core.debug(`Hugo withDeploy: ${withDeploy}`); const osName: string = getOS(process.platform);