Skip to content

Commit 03ecc1e

Browse files
authored
Add comments
1 parent 2ef783f commit 03ecc1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ const core = require('@actions/core');
22
const github = require('@actions/github');
33

44
try {
5+
// `who-to-greet` input defined in action metadata file
56
const nameToGreet = core.getInput('who-to-greet');
67
console.log(`Hello ${nameToGreet}!`);
78
const time = (new Date()).toTimeString();
89
core.setOutput("time", time);
10+
// Get the JSON webhook payload for the event that triggered the workflow
911
const payload = JSON.stringify(github.context.payload, undefined, 2)
1012
console.log(`The event payload: ${payload}`);
1113
} catch (error) {

0 commit comments

Comments
 (0)