Remove async function wrapper

This commit is contained in:
Rachael Sewell
2019-08-06 19:24:57 -07:00
committed by GitHub
parent 3423c5a0bc
commit bc3c29f84d

View File

@ -1,15 +1,12 @@
const core = require('@actions/core');
const github = require('@actions/core');
async function run() {
try {
const nameToGreet = core.getInput('who-to-greet');
core.debug(`Hello ${nameToGreet}!`);
const time = (new Date()).toTimeString();
core.setOutput("time", time);
} catch (error) {
core.setFailed(error.message);
}
}
run();
try {
const nameToGreet = core.getInput('who-to-greet');
core.debug(`Hello ${nameToGreet}!`);
const time = (new Date()).toTimeString();
core.setOutput("time", time);
} catch (error) {
core.setFailed(error.message);
}