From 012bf84b51d0c89626a2baac9ca596bad7269ed7 Mon Sep 17 00:00:00 2001 From: Corey Butler Date: Mon, 2 Sep 2019 17:51:34 -0500 Subject: [PATCH] WIP --- lib/main.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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}`)