mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 14:30:54 +00:00 
			
		
		
		
	Update log statement
This commit is contained in:
		
					parent
					
						
							
								84097c0606
							
						
					
				
			
			
				commit
				
					
						1840896778
					
				
			
		
					 4 changed files with 4 additions and 4 deletions
				
			
		|  | @ -397,7 +397,7 @@ test("restore with lookup-only set", async () => { | ||||||
|     expect(setCacheHitOutputMock).toHaveBeenCalledWith("cache-hit", "true"); |     expect(setCacheHitOutputMock).toHaveBeenCalledWith("cache-hit", "true"); | ||||||
| 
 | 
 | ||||||
|     expect(infoMock).toHaveBeenCalledWith( |     expect(infoMock).toHaveBeenCalledWith( | ||||||
|         `Cache would have been restored from key: ${key}` |         `Cache found and can be restored from key: ${key}` | ||||||
|     ); |     ); | ||||||
|     expect(failedMock).toHaveBeenCalledTimes(0); |     expect(failedMock).toHaveBeenCalledTimes(0); | ||||||
| }); | }); | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								dist/restore-only/index.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/restore-only/index.js
									
										
									
									
										vendored
									
									
								
							|  | @ -50521,7 +50521,7 @@ function restoreImpl(stateProvider) { | ||||||
|             const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey); |             const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey); | ||||||
|             core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString()); |             core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString()); | ||||||
|             if (lookupOnly) { |             if (lookupOnly) { | ||||||
|                 core.info(`Cache would have been restored from key: ${cacheKey}`); |                 core.info(`Cache found and can be restored from key: ${cacheKey}`); | ||||||
|             } |             } | ||||||
|             else { |             else { | ||||||
|                 core.info(`Cache restored from key: ${cacheKey}`); |                 core.info(`Cache restored from key: ${cacheKey}`); | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								dist/restore/index.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/restore/index.js
									
										
									
									
										vendored
									
									
								
							|  | @ -50521,7 +50521,7 @@ function restoreImpl(stateProvider) { | ||||||
|             const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey); |             const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey); | ||||||
|             core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString()); |             core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString()); | ||||||
|             if (lookupOnly) { |             if (lookupOnly) { | ||||||
|                 core.info(`Cache would have been restored from key: ${cacheKey}`); |                 core.info(`Cache found and can be restored from key: ${cacheKey}`); | ||||||
|             } |             } | ||||||
|             else { |             else { | ||||||
|                 core.info(`Cache restored from key: ${cacheKey}`); |                 core.info(`Cache restored from key: ${cacheKey}`); | ||||||
|  |  | ||||||
|  | @ -71,7 +71,7 @@ async function restoreImpl( | ||||||
| 
 | 
 | ||||||
|         core.setOutput(Outputs.CacheHit, isExactKeyMatch.toString()); |         core.setOutput(Outputs.CacheHit, isExactKeyMatch.toString()); | ||||||
|         if (lookupOnly) { |         if (lookupOnly) { | ||||||
|             core.info(`Cache would have been restored from key: ${cacheKey}`); |             core.info(`Cache found and can be restored from key: ${cacheKey}`); | ||||||
|         } else { |         } else { | ||||||
|             core.info(`Cache restored from key: ${cacheKey}`); |             core.info(`Cache restored from key: ${cacheKey}`); | ||||||
|         } |         } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue