Skip to content

Commit

Permalink
fix: more debugging logs
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypicalpro committed Dec 10, 2020
1 parent c4b6fcc commit 4a47f59
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

20 changes: 13 additions & 7 deletions src/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@ import run from './main'
* "main" function.
*/

function debugCmd(cmd: string): void {
const [cmd_val, ...args] = cmd.split(' ')
const output = spawnSync(cmd_val, args)
core.debug(`${cmd}: ${output.error || ''}`)
core.debug(JSON.stringify(output.stdout?.toString?.()))
core.debug(JSON.stringify(output.stderr?.toString?.()))
}

// debugging
core.debug(JSON.stringify(process.env))
const output = spawnSync('licensee', ['version'])
core.debug(JSON.stringify(output.stdout?.toString?.()))
core.debug(JSON.stringify(output.stderr?.toString?.()))
const output2 = spawnSync('github-linguist', ['--help'])
core.debug(JSON.stringify(output2.stdout?.toString?.()))
core.debug(JSON.stringify(output2.stderr?.toString?.()))

debugCmd('licensee version')
debugCmd('github-linguist --help')
debugCmd('ls -lah /usr/local/lib/ruby/gems/2.6.0/bin')
debugCmd('bundle platform')
debugCmd('bundle list')

run()

0 comments on commit 4a47f59

Please sign in to comment.