From 03ecc1e8877e9be69e1a70a6145bac1ba4b06586 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Fri, 6 Sep 2019 15:10:28 -0700 Subject: [PATCH] Add comments --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index 7ebcb44..723a82e 100644 --- a/index.js +++ b/index.js @@ -2,10 +2,12 @@ const core = require('@actions/core'); const github = require('@actions/github'); try { + // `who-to-greet` input defined in action metadata file const nameToGreet = core.getInput('who-to-greet'); console.log(`Hello ${nameToGreet}!`); const time = (new Date()).toTimeString(); core.setOutput("time", time); + // Get the JSON webhook payload for the event that triggered the workflow const payload = JSON.stringify(github.context.payload, undefined, 2) console.log(`The event payload: ${payload}`); } catch (error) {