mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 04:12:17 +01:00
add: extended false
This commit is contained in:
6
index.js
6
index.js
@@ -2,6 +2,7 @@ const core = require('@actions/core');
|
|||||||
// const wait = require('./wait');
|
// const wait = require('./wait');
|
||||||
|
|
||||||
let hugoVersion = '';
|
let hugoVersion = '';
|
||||||
|
let extended = '';
|
||||||
|
|
||||||
// most @actions toolkit packages have async methods
|
// most @actions toolkit packages have async methods
|
||||||
async function run() {
|
async function run() {
|
||||||
@@ -21,7 +22,10 @@ async function run() {
|
|||||||
}
|
}
|
||||||
console.log('Hugo version:', hugoVersion);
|
console.log('Hugo version:', hugoVersion);
|
||||||
|
|
||||||
const extended = core.getInput('extended');
|
extended = core.getInput('extended');
|
||||||
|
if (!extended) {
|
||||||
|
extended = false;
|
||||||
|
}
|
||||||
console.log('Hugo extended:', extended);
|
console.log('Hugo extended:', extended);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user