mirror of
				https://github.com/ButlerLogic/action-autotag.git
				synced 2025-10-31 07:16:25 +07:00 
			
		
		
		
	Added more tests
This commit is contained in:
		
							
								
								
									
										12
									
								
								lib/main.js
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								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) | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Corey Butler
					Corey Butler