mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-04-07 15:09:36 +00:00
16 lines
369 B
JavaScript
16 lines
369 B
JavaScript
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();
|