mirror of
				https://github.com/ButlerLogic/action-autotag.git
				synced 2025-10-31 15:26:24 +07:00 
			
		
		
		
	WIP
This commit is contained in:
		| @ -11,6 +11,8 @@ async function run() { | ||||
|     // const myInput = core.getInput('myInput') | ||||
|     // core.debug(`Hello ${myInput}`) | ||||
|     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') | ||||
| @ -23,9 +25,7 @@ async function run() { | ||||
|  | ||||
|     core.warning(` Alt Working Directory: ${process.env.RUNNER_BASEPATH}:\n${dir2}`) | ||||
|      | ||||
|     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.RUNNER_BASEPATH, 'package.json')).toString()) | ||||
|  | ||||
|     core.setOutput('tag', '') | ||||
|   } catch (error) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Corey Butler
					Corey Butler