From a0ac8c2657a07b6dd80844401b60b14258a74069 Mon Sep 17 00:00:00 2001 From: Corey Butler Date: Mon, 2 Sep 2019 16:38:37 -0500 Subject: [PATCH] Added more tests --- lib/main.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/main.js b/lib/main.js index 065de65..d28f1a1 100644 --- a/lib/main.js +++ b/lib/main.js @@ -5,8 +5,16 @@ async function run() { console.log(process.env) try { - const myInput = core.getInput('myInput') - core.debug(`Hello ${myInput}`) + // const myInput = core.getInput('myInput') + // core.debug(`Hello ${myInput}`) + let dir = fs.readdirSync(path.resolve(process.env.GITHUB_WORKSPACE), { withFileTypes: true }).map(entry => { + return `${entry.isDirectory() ? '> ' : ' - '}${entry.name}` + }).join('\n') + + core.debug(`Working Directory: ${process.env.GITHUB_WORKSPACE}:\n${dir}`) + core.warning(`Available environment variables:\n -> ${Object.keys(process.env).join('\n -> ')}`) + + core.setOutput('') } catch (error) { core.setFailed(error.message) }