mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 16:14:00 +08:00 
			
		
		
		
	Add 'cache-hit' as output
This commit is contained in:
		
							
								
								
									
										1
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -44674,6 +44674,7 @@ exports.restoreCache = (packageManager, cacheDependencyPath) => __awaiter(void 0 | ||||
|     core.debug(`primary key is ${primaryKey}`); | ||||
|     core.saveState(constants_1.State.CachePrimaryKey, primaryKey); | ||||
|     const cacheKey = yield cache.restoreCache([cachePath], primaryKey); | ||||
|     core.setOutput('cache-hit', Boolean(cacheKey)); | ||||
|     if (!cacheKey) { | ||||
|         core.info(`${packageManager} cache is not found`); | ||||
|         return; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Manuel
					Manuel