mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-06-18 01:55:29 +08:00
Compare commits
2 Commits
7b3d2fe72b
...
3232f95c9c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3232f95c9c | ||
![]() |
32321cc1a2 |
@ -9,14 +9,14 @@ export default function getURL(
|
|||||||
version: string
|
version: string
|
||||||
}
|
}
|
||||||
): string {
|
): string {
|
||||||
let extendedStr = '';
|
|
||||||
if (options.extended === 'true') {
|
|
||||||
extendedStr = 'extended_';
|
|
||||||
}
|
|
||||||
let withdeployStr = '';
|
let withdeployStr = '';
|
||||||
if (options.withdeploy === 'true') {
|
if (options.withdeploy === 'true') {
|
||||||
withdeployStr = 'withdeploy_';
|
withdeployStr = 'withdeploy_';
|
||||||
}
|
}
|
||||||
|
let extendedStr = '';
|
||||||
|
if (options.extended === 'true' || withdeployStr) {
|
||||||
|
extendedStr = 'extended_';
|
||||||
|
}
|
||||||
let ext = 'tar.gz';
|
let ext = 'tar.gz';
|
||||||
if (system.os === 'Windows') {
|
if (system.os === 'Windows') {
|
||||||
ext = 'zip';
|
ext = 'zip';
|
||||||
|
Loading…
Reference in New Issue
Block a user