mirror of
https://github.com/actions/typescript-action.git
synced 2025-12-16 15:08:01 +00:00
* Fixup dependencies and some other things * add dependabot * Update to separate run steps
20 lines
532 B
TypeScript
20 lines
532 B
TypeScript
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 ...`) // debug is only output if you set the secret `ACTIONS_RUNNER_DEBUG` to true
|
|
|
|
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()
|