mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-12-15 06:27:06 +00:00
Remove async function wrapper
This commit is contained in:
5
index.js
5
index.js
@@ -1,7 +1,7 @@
|
||||
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}!`);
|
||||
@@ -10,6 +10,3 @@ async function run() {
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
}
|
||||
|
||||
run();
|
||||
|
||||
Reference in New Issue
Block a user