Skip to content

Commit

Permalink
Debugging the getJsonReports function
Browse files Browse the repository at this point in the history
  • Loading branch information
thsaravana committed Jul 24, 2023
1 parent fb12b7b commit e581f33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16984,9 +16984,14 @@ async function action() {
}

async function getJsonReports(xmlPaths, debugMode) {
if (debugMode) core.info(`xmlPaths: ${xmlPaths}`)
if (debugMode) core.info(`xmlPaths: ${xmlPaths} : ${xmlPaths.length}`)
const paths = xmlPaths.flatMap((xmlPath) => globSync(xmlPath))
if (debugMode) core.info(`paths: ${paths} : ${typeof paths}`)
xmlPaths.forEach((p) => {
const ph = globSync(p)
if (debugMode) core.info(`ph: ${ph} : ${typeof ph} : ${ph.length}`)
})
if (debugMode)
core.info(`paths: ${paths} : ${typeof paths} : ${paths.length}`)
return Promise.all(
paths
.filter((path) => path && path.length !== 0)
Expand Down
9 changes: 7 additions & 2 deletions src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ async function action() {
}

async function getJsonReports(xmlPaths, debugMode) {
if (debugMode) core.info(`xmlPaths: ${xmlPaths}`)
if (debugMode) core.info(`xmlPaths: ${xmlPaths} : ${xmlPaths.length}`)
const paths = xmlPaths.flatMap((xmlPath) => globSync(xmlPath))
if (debugMode) core.info(`paths: ${paths} : ${typeof paths}`)
xmlPaths.forEach((p) => {
const ph = globSync(p)
if (debugMode) core.info(`ph: ${ph} : ${typeof ph} : ${ph.length}`)
})
if (debugMode)
core.info(`paths: ${paths} : ${typeof paths} : ${paths.length}`)
return Promise.all(
paths
.filter((path) => path && path.length !== 0)
Expand Down

0 comments on commit e581f33

Please sign in to comment.