diff --git a/lib/main.js b/lib/main.js index be3cb3d..4055253 100644 --- a/lib/main.js +++ b/lib/main.js @@ -19,13 +19,13 @@ async function run() { core.warning(` Working Directory: ${process.env.GITHUB_WORKSPACE}:\n${dir}`) - let dir2 = fs.readdirSync(path.resolve(process.env.RUNNER_BASEPATH), { withFileTypes: true }).map(entry => { + let dir2 = fs.readdirSync(path.resolve(process.env.RUNNER_WORKSPACE), { withFileTypes: true }).map(entry => { return `${entry.isDirectory() ? '> ' : ' - '}${entry.name}` }).join('\n') - core.warning(` Alt Working Directory: ${process.env.RUNNER_BASEPATH}:\n${dir2}`) + core.warning(` Alt Working Directory: ${process.env.RUNNER_WORKSPACE}:\n${dir2}`) - console.log(fs.readFileSync(path.join(process.env.RUNNER_BASEPATH, 'package.json')).toString()) + console.log(fs.readFileSync(path.join(process.env.RUNNER_WORKSPACE, 'package.json')).toString()) core.setOutput('tag', '') } catch (error) {