mirror of
https://github.com/ButlerLogic/action-autotag.git
synced 2024-11-10 02:11:08 +07:00
WIP
This commit is contained in:
parent
2db63a897d
commit
c9bb092cbc
18
lib/main.js
18
lib/main.js
@ -13,19 +13,19 @@ async function run() {
|
||||
core.warning(process.env.INPUT_GITHUB_TOKEN)
|
||||
core.warning(` Available environment variables:\n -> ${Object.keys(process.env).map(i => i + ' :: ' + process.env[i]).join('\n -> ')}`)
|
||||
|
||||
// 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}`)
|
||||
|
||||
let dir2 = fs.readdirSync(process.env.RUNNER_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(` Alt Working Directory: ${process.env.RUNNER_WORKSPACE}:\n${dir2}`)
|
||||
core.warning(` Working Directory: ${process.env.GITHUB_WORKSPACE}:\n${dir}`)
|
||||
|
||||
console.log(fs.readFileSync(path.join(process.env.RUNNER_WORKSPACE, 'package.json')).toString())
|
||||
// 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}`)
|
||||
|
||||
console.log(fs.readFileSync(path.join(process.env.GITHUB_WORKSPACE, 'package.json')).toString())
|
||||
|
||||
core.setOutput('tag', '')
|
||||
} catch (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user