Initial commit

This commit is contained in:
David Anthoff
2020-03-23 10:37:00 -07:00
commit 4c62666e81
17 changed files with 7306 additions and 0 deletions

19
src/main.ts Normal file
View File

@@ -0,0 +1,19 @@
import * as core from '@actions/core'
import {wait} from './wait'
async function run(): Promise<void> {
try {
const ms: string = core.getInput('milliseconds')
core.debug(`Waiting ${ms} milliseconds ...`)
core.debug(new Date().toTimeString())
await wait(parseInt(ms, 10))
core.debug(new Date().toTimeString())
core.setOutput('time', new Date().toTimeString())
} catch (error) {
core.setFailed(error.message)
}
}
run()