Update index.js

This commit is contained in:
Rachael Sewell 2019-08-06 20:27:39 -07:00 committed by GitHub
parent bc3c29f84d
commit c7b08592b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,13 @@
const core = require('@actions/core');
const github = require('@actions/core');
try {
const nameToGreet = core.getInput('who-to-greet');
core.debug(`Hello ${nameToGreet}!`);
console.log(`Hello ${nameToGreet}!`);
const time = (new Date()).toTimeString();
core.setOutput("time", time);
const context = github.context;
core.debug(`The webhook payload: ${context.payload}`);
} catch (error) {
core.setFailed(error.message);
}