From 4e4ae7fe20a90a6703ca45e98b2e390aee7bca0e Mon Sep 17 00:00:00 2001 From: Ramana Reddy Date: Thu, 25 Jul 2024 16:00:21 +0530 Subject: [PATCH] debug --- dist/index.js | 13 +++++++++++++ src/index.js | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/dist/index.js b/dist/index.js index 399292e..1cefcc8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10860,6 +10860,19 @@ async function run() { if (flags) params.push(...parseFlagsToArray(flags)); + console.log(`Report Config:${reportConfig}:`); + + if (reportConfig && reportConfig!=null){ + console.log(`defined and not null`); + } + + if (reportConfig!=null && reportConfig){ + console.log(`not null and defined`); + } + if (reportConfig!=null && reportConfig && reportConfig.trim().length > 0){ + console.log(`reportConfig.trim().length > 0`); + } + // If everything is fine and github-report is set, generate the yaml config file. if (githubReport == true) { // create default config file with name `github-report.yaml` diff --git a/src/index.js b/src/index.js index 9f3b25a..b6c3576 100644 --- a/src/index.js +++ b/src/index.js @@ -75,6 +75,19 @@ async function run() { if (flags) params.push(...parseFlagsToArray(flags)); + console.log(`Report Config:${reportConfig}:`); + + if (reportConfig && reportConfig!=null){ + console.log(`defined and not null`); + } + + if (reportConfig!=null && reportConfig){ + console.log(`not null and defined`); + } + if (reportConfig!=null && reportConfig && reportConfig.trim().length > 0){ + console.log(`reportConfig.trim().length > 0`); + } + // If everything is fine and github-report is set, generate the yaml config file. if (githubReport == true) { // create default config file with name `github-report.yaml`