mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-29 07:47:20 +00:00 
			
		
		
		
	refactor: use core.info instead of console.log (#185)
This commit is contained in:
		
							
								
								
									
										6
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -4728,9 +4728,9 @@ function run() { | |||||||
|                 auth.configAuthentication(registryUrl, alwaysAuth); |                 auth.configAuthentication(registryUrl, alwaysAuth); | ||||||
|             } |             } | ||||||
|             const matchersPath = path.join(__dirname, '..', '.github'); |             const matchersPath = path.join(__dirname, '..', '.github'); | ||||||
|             console.log(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`); |             core.info(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`); | ||||||
|             console.log(`##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}`); |             core.info(`##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}`); | ||||||
|             console.log(`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`); |             core.info(`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`); | ||||||
|         } |         } | ||||||
|         catch (error) { |         catch (error) { | ||||||
|             core.setFailed(error.message); |             core.setFailed(error.message); | ||||||
|   | |||||||
| @@ -46,11 +46,11 @@ export async function run() { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     const matchersPath = path.join(__dirname, '..', '.github'); |     const matchersPath = path.join(__dirname, '..', '.github'); | ||||||
|     console.log(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`); |     core.info(`##[add-matcher]${path.join(matchersPath, 'tsc.json')}`); | ||||||
|     console.log( |     core.info( | ||||||
|       `##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}` |       `##[add-matcher]${path.join(matchersPath, 'eslint-stylish.json')}` | ||||||
|     ); |     ); | ||||||
|     console.log( |     core.info( | ||||||
|       `##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}` |       `##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}` | ||||||
|     ); |     ); | ||||||
|   } catch (error) { |   } catch (error) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Rohan Chougule
					Rohan Chougule