mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-06-07 01:25:27 +08:00
Replaced bool values with strings (#2)
This commit is contained in:
parent
a11750b1de
commit
9182f4160b
@ -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 '';
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user