mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-12-16 15:19:19 +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 core = require('@actions/core');
|
||||||
const github = require('@actions/core');
|
const github = require('@actions/core');
|
||||||
|
|
||||||
async function run() {
|
|
||||||
try {
|
try {
|
||||||
const nameToGreet = core.getInput('who-to-greet');
|
const nameToGreet = core.getInput('who-to-greet');
|
||||||
core.debug(`Hello ${nameToGreet}!`);
|
core.debug(`Hello ${nameToGreet}!`);
|
||||||
@@ -10,6 +10,3 @@ async function run() {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
run();
|
|
||||||
|
|||||||
Reference in New Issue
Block a user