Replaced bool values with strings (#2)

This commit is contained in:
Vlad Kyrylenko 2025-01-03 17:56:32 -05:00 committed by GitHub
parent a11750b1de
commit 9182f4160b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -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 '';

View File

@ -44,10 +44,10 @@ export async function createBinDir(workDir: string): Promise<string> {
}
export async function installer(version: string): Promise<void> {
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);