print event path

This commit is contained in:
Ville Saukkonen 2023-04-22 17:59:54 +03:00
parent 97bdebd585
commit 29cd406230
3 changed files with 5 additions and 1 deletions

2
dist/index.js vendored

@ -202,6 +202,8 @@ function main() {
let diff; let diff;
console.log("Running the action..."); console.log("Running the action...");
console.log("Event name:", process.env.GITHUB_EVENT_NAME); console.log("Event name:", process.env.GITHUB_EVENT_NAME);
console.log("PR event path:");
console.log(process.env.GITHUB_EVENT_PATH);
if (process.env.GITHUB_EVENT_NAME === "pull_request") { if (process.env.GITHUB_EVENT_NAME === "pull_request") {
console.log("Pull request event"); console.log("Pull request event");
diff = yield getDiff(prDetails.owner, prDetails.repo, prDetails.pull_number); diff = yield getDiff(prDetails.owner, prDetails.repo, prDetails.pull_number);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

@ -198,6 +198,8 @@ async function main() {
let diff: string | null; let diff: string | null;
console.log("Running the action..."); console.log("Running the action...");
console.log("Event name:", process.env.GITHUB_EVENT_NAME); console.log("Event name:", process.env.GITHUB_EVENT_NAME);
console.log("PR event path:");
console.log(process.env.GITHUB_EVENT_PATH);
if (process.env.GITHUB_EVENT_NAME === "pull_request") { if (process.env.GITHUB_EVENT_NAME === "pull_request") {
console.log("Pull request event"); console.log("Pull request event");
diff = await getDiff( diff = await getDiff(