diff --git a/lib/main.js b/lib/main.js index 6acbc95..7fb6f51 100644 --- a/lib/main.js +++ b/lib/main.js @@ -15,13 +15,7 @@ async function run() { core.warning(` Working Directory: ${process.env.GITHUB_WORKSPACE}:\n${dir}`) - // let dir2 = fs.readdirSync(process.env.RUNNER_WORKSPACE, { withFileTypes: true }).map(entry => { - // return `${entry.isDirectory() ? '> ' : ' - '}${entry.name}` - // }).join('\n') - - // core.warning(` Alt Working Directory: ${process.env.RUNNER_WORKSPACE}:\n${dir2}`) - - let pkg = require(fs.readFileSync(path.join(process.env.GITHUB_WORKSPACE, 'package.json'))) + let pkg = require(path.join(process.env.GITHUB_WORKSPACE, 'package.json')) core.warning(` ${pkg.version}`)