Skip to content

Commit

Permalink
Trying to figure out why debug info isn't coming.
Browse files Browse the repository at this point in the history
  • Loading branch information
manchicken committed Jun 29, 2023
1 parent 4f13a37 commit 5f4a062
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 11 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,14 @@ const run = async (configs) => {
}

// Grab the inputs and then run with them!
inputsToRegistryDocument().then((configs) => run(configs))
core.debug('STARTING THE PARSE')
inputsToRegistryDocument()
.then((configs) => {
core.debug(`Input schema version is «${core.getInput('schema-version')}»`)
core.debug(
`Inputs coming off of configs: ${JSON.stringify(configs, undefined, 2)}`,
)

return configs
})
.then((configs) => run(configs))
10 changes: 0 additions & 10 deletions lib/input-to-registry-document.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,13 @@ const inputsToRegistryDocument = async () => {
mapField(fieldName, version)(core.getInput(fieldName)),
),
)
/*
for (const fieldName of schemaFields) {
const input = core.getInput(fieldName)
if (input === undefined) continue
Object.assign(configs, mapField(fieldName, version)(input))
}
*/

for (const fieldName of convenienceFields) {
const input = core.getInput(fieldName)
if (input === undefined) continue
configs = mapField(fieldName, version)(input, configs)
}

core.debug(`Input schema version is «${core.getInput('schema-version')}»`)
core.debug(`Inputs coming off of configs: ${JSON.stringify(configs, undefined, 2)}`)

return configs
}

Expand Down

0 comments on commit 5f4a062

Please sign in to comment.