From 03bccf68b8e1b91508c45a41250430d9f3cd43a9 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Sep 2019 00:04:26 +0900 Subject: [PATCH] remove: milliseconds option --- .github/workflows/test.yml | 1 - action.yml | 7 ------- index.js | 12 ++++++------ 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c82f37a..95f6514 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,4 +28,3 @@ jobs: with: hugo-version: ${{ matrix.hugo-version }} extended: ${{ matrix.extended }} - milliseconds: 100 diff --git a/action.yml b/action.yml index 51dcc0b..3775df5 100644 --- a/action.yml +++ b/action.yml @@ -10,13 +10,6 @@ inputs: description: 'Download (if necessary) and use Hugo extended version. Example: true' required: 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: using: 'node12' main: 'index.js' diff --git a/index.js b/index.js index 09d6746..5bd874c 100644 --- a/index.js +++ b/index.js @@ -5,14 +5,14 @@ const wait = require('./wait'); // most @actions toolkit packages have async methods async function run() { try { - const ms = core.getInput('milliseconds'); - console.log(`Waiting ${ms} milliseconds ...`) + // const ms = core.getInput('milliseconds'); + // console.log(`Waiting ${ms} milliseconds ...`) - core.debug((new Date()).toTimeString()) - wait(parseInt(ms)); - core.debug((new Date()).toTimeString()) + // core.debug((new Date()).toTimeString()) + // wait(parseInt(ms)); + // core.debug((new Date()).toTimeString()) - core.setOutput('time', new Date().toTimeString()); + // core.setOutput('time', new Date().toTimeString()); const hugoVersion = core.getInput('hugo-version'); console.log('Hugo version:', hugoVersion);