project-version-check/index.js
Shakar 283f0c95ff
Code cleanup
Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
2023-09-13 14:58:13 +03:00

17 lines
372 B
JavaScript

const core = require('@actions/core');
const github = require('@actions/github');
try {
const label = core.getInput('label');
console.log(`Label: ${label}`)
core.setOutput("label", label);
const payload = JSON.stringify(github.context.payload, undefined, 2)
console.log(`The event payload: ${payload}`);
} catch (error) {
core.setFailed(error.message);
}