mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-24 20:12:15 +01:00
remove: milliseconds option
This commit is contained in:
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@@ -28,4 +28,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
hugo-version: ${{ matrix.hugo-version }}
|
hugo-version: ${{ matrix.hugo-version }}
|
||||||
extended: ${{ matrix.extended }}
|
extended: ${{ matrix.extended }}
|
||||||
milliseconds: 100
|
|
||||||
|
|||||||
@@ -10,13 +10,6 @@ inputs:
|
|||||||
description: 'Download (if necessary) and use Hugo extended version. Example: true'
|
description: 'Download (if necessary) and use Hugo extended version. Example: true'
|
||||||
required: false
|
required: false
|
||||||
default: 'false'
|
default: 'false'
|
||||||
milliseconds: # id of input
|
|
||||||
description: 'number of milliseconds to wait'
|
|
||||||
required: true
|
|
||||||
default: '1000'
|
|
||||||
outputs:
|
|
||||||
time: # output will be available to future steps
|
|
||||||
description: 'The message to output'
|
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
main: 'index.js'
|
main: 'index.js'
|
||||||
|
|||||||
12
index.js
12
index.js
@@ -5,14 +5,14 @@ const wait = require('./wait');
|
|||||||
// most @actions toolkit packages have async methods
|
// most @actions toolkit packages have async methods
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
const ms = core.getInput('milliseconds');
|
// const ms = core.getInput('milliseconds');
|
||||||
console.log(`Waiting ${ms} milliseconds ...`)
|
// console.log(`Waiting ${ms} milliseconds ...`)
|
||||||
|
|
||||||
core.debug((new Date()).toTimeString())
|
// core.debug((new Date()).toTimeString())
|
||||||
wait(parseInt(ms));
|
// wait(parseInt(ms));
|
||||||
core.debug((new Date()).toTimeString())
|
// core.debug((new Date()).toTimeString())
|
||||||
|
|
||||||
core.setOutput('time', new Date().toTimeString());
|
// core.setOutput('time', new Date().toTimeString());
|
||||||
|
|
||||||
const hugoVersion = core.getInput('hugo-version');
|
const hugoVersion = core.getInput('hugo-version');
|
||||||
console.log('Hugo version:', hugoVersion);
|
console.log('Hugo version:', hugoVersion);
|
||||||
|
|||||||
Reference in New Issue
Block a user