mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-06-07 01:25:27 +08:00
Add the new argument to the action (#3)
This commit is contained in:
parent
9182f4160b
commit
a73e76d41f
@ -10,6 +10,10 @@ inputs:
|
||||
description: 'Download (if necessary) and use Hugo extended version. Example: true'
|
||||
required: false
|
||||
default: 'false'
|
||||
withDeploy:
|
||||
description: 'Select a version that deployment support enabled. Extended argument must be set to true. Example: true'
|
||||
required: false
|
||||
default: 'false'
|
||||
runs:
|
||||
using: 'node20'
|
||||
main: 'lib/index.js'
|
||||
|
@ -17,9 +17,10 @@ export default function getURL(
|
||||
};
|
||||
|
||||
const deployStr = (deploy: string): string => {
|
||||
if (deploy === 'true') {
|
||||
if (deploy === 'true' && extended === 'true') {
|
||||
return 'withdeploy_';
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
return '';
|
||||
// } else {
|
||||
// throw new Error(`Invalid input (extended): ${extended}`);
|
||||
|
Loading…
Reference in New Issue
Block a user