-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
const core = require('@actions/core'); | ||
const github = require('@actions/github'); | ||
/** | ||
* Pinpoint gitbook template engine | ||
* Copyright 2021-present NAVER Corp. | ||
* Apache License v2.0 | ||
*/ | ||
|
||
'use strict' | ||
|
||
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); | ||
const templateMarkdownFile = core.getInput('template-markdown-file') | ||
console.log(`Hello ${templateMarkdownFile}!`) | ||
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}`); | ||
console.log(`The event payload: ${payload}`) | ||
} catch (error) { | ||
core.setFailed(error.message); | ||
core.setFailed(error.message) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Pinpoint gitbook template engine | ||
* Copyright 2021-present NAVER Corp. | ||
* Apache License v2.0 | ||
*/ | ||
|
||
'use strict' |