This commit is contained in:
Corey Butler 2019-09-02 17:14:09 -05:00
parent 6bc8d259e7
commit ea6dbd38cb

View File

@ -11,14 +11,14 @@ async function run() {
// const myInput = core.getInput('myInput')
// core.debug(`Hello ${myInput}`)
core.warning(process.env.INPUT_GITHUB_TOKEN)
let dir = fs.readdirSync(path.resolve(process.env.GITHUB_WORKSPACE + '/../'), { withFileTypes: true }).map(entry => {
let dir = fs.readdirSync(path.resolve(process.env.GITHUB_WORKSPACE), { withFileTypes: true }).map(entry => {
return `${entry.isDirectory() ? '> ' : ' - '}${entry.name}`
}).join('\n')
core.warning(` Working Directory: ${process.env.GITHUB_WORKSPACE}:\n${dir}`)
core.warning(` Available environment variables:\n -> ${Object.keys(process.env).map(i => i + ' :: ' +process.env[i]).join('\n -> ')}`)
console.log(fs.readFileSync(path.join(process.env.GITHUB_WORKSPACE, '../package.json')).toString())
console.log(fs.readFileSync(path.join(process.env.GITHUB_WORKSPACE, 'package.json')).toString())
core.setOutput('tag', '')
} catch (error) {