mirror of
				https://kkgithub.com/actions/setup-node.git
				synced 2025-11-01 03:01:53 +08:00 
			
		
		
		
	adding test case
This commit is contained in:
		
							
								
								
									
										13
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										13
									
								
								dist/cache-save/index.js
									
									
									
									
										vendored
									
									
								
							| @ -59888,16 +59888,11 @@ const cachePackages = (packageManager) => __awaiter(void 0, void 0, void 0, func | ||||
|         core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`); | ||||
|         return; | ||||
|     } | ||||
|     try { | ||||
|         const cacheId = yield cache.saveCache([cachePath], primaryKey); | ||||
|         if (cacheId == -1) { | ||||
|             return; | ||||
|         } | ||||
|         core.info(`Cache saved with the key: ${primaryKey}`); | ||||
|     } | ||||
|     catch (error) { | ||||
|         core.warning(`${error.message}`); | ||||
|     const cacheId = yield cache.saveCache([cachePath], primaryKey); | ||||
|     if (cacheId == -1) { | ||||
|         return; | ||||
|     } | ||||
|     core.info(`Cache saved with the key: ${primaryKey}`); | ||||
| }); | ||||
| run(); | ||||
| 
 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shubham Tiwari
					Shubham Tiwari