mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-23 06:16:41 +00:00
21 lines
541 B
JavaScript
21 lines
541 B
JavaScript
const core = require('@actions/core');
|
|
const github = require('@actions/github');
|
|
|
|
|
|
try {
|
|
const nameToGreet = core.getInput('who-to-greet');
|
|
const label = core.getInput('label');
|
|
console.log(`Lable: ${label}`)
|
|
console.log(`Hello ${nameToGreet}!`);
|
|
const time = (new Date()).toTimeString();
|
|
|
|
core.setOutput("lable", label);
|
|
core.setOutput("time", time);
|
|
|
|
const payload = JSON.stringify(github.context.payload, undefined, 2)
|
|
|
|
console.log(`The event payload: ${payload}`);
|
|
} catch (error) {
|
|
core.setFailed(error.message);
|
|
}
|