mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-06-17 17:45:29 +08:00
Update get-url.ts
This commit is contained in:
parent
6191baf0cc
commit
32321cc1a2
@ -9,14 +9,14 @@ export default function getURL(
|
||||
version: string
|
||||
}
|
||||
): string {
|
||||
let extendedStr = '';
|
||||
if (options.extended === 'true') {
|
||||
extendedStr = 'extended_';
|
||||
}
|
||||
let withdeployStr = '';
|
||||
if (options.withdeploy === 'true') {
|
||||
withdeployStr = 'withdeploy_';
|
||||
}
|
||||
let extendedStr = '';
|
||||
if (options.extended === 'true' || withdeployStr) {
|
||||
extendedStr = 'extended_';
|
||||
}
|
||||
let ext = 'tar.gz';
|
||||
if (system.os === 'Windows') {
|
||||
ext = 'zip';
|
||||
|
Loading…
Reference in New Issue
Block a user