mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-07 16:49:03 +00:00
20 lines
455 B
TypeScript
20 lines
455 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 ...`)
|
||
|
|
||
|
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()
|