mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 16:54:01 +00:00 
			
		
		
		
	Merge 5cdbd5c7ec0c2f079058d8a75ca2d15388ab1ddd into 638ed79f9dc94c1de1baef91bcab5edaa19451f4
This commit is contained in:
		
						commit
						d947bc533d
					
				
							
								
								
									
										2
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							| @ -66139,7 +66139,7 @@ function restoreImpl(stateProvider, earlyExit) { | ||||
|             } | ||||
|             // Store the matched cache key in states
 | ||||
|             stateProvider.setState(constants_1.State.CacheMatchedKey, cacheKey); | ||||
|             const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey); | ||||
|             const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey); | ||||
|             core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString()); | ||||
|             if (lookupOnly) { | ||||
|                 core.info(`Cache found and can be restored from key: ${cacheKey}`); | ||||
|  | ||||
							
								
								
									
										2
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							| @ -66139,7 +66139,7 @@ function restoreImpl(stateProvider, earlyExit) { | ||||
|             } | ||||
|             // Store the matched cache key in states
 | ||||
|             stateProvider.setState(constants_1.State.CacheMatchedKey, cacheKey); | ||||
|             const isExactKeyMatch = utils.isExactKeyMatch(core.getInput(constants_1.Inputs.Key, { required: true }), cacheKey); | ||||
|             const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey); | ||||
|             core.setOutput(constants_1.Outputs.CacheHit, isExactKeyMatch.toString()); | ||||
|             if (lookupOnly) { | ||||
|                 core.info(`Cache found and can be restored from key: ${cacheKey}`); | ||||
|  | ||||
| @ -71,11 +71,7 @@ export async function restoreImpl( | ||||
|         // Store the matched cache key in states
 | ||||
|         stateProvider.setState(State.CacheMatchedKey, cacheKey); | ||||
| 
 | ||||
|         const isExactKeyMatch = utils.isExactKeyMatch( | ||||
|             core.getInput(Inputs.Key, { required: true }), | ||||
|             cacheKey | ||||
|         ); | ||||
| 
 | ||||
|         const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey); | ||||
|         core.setOutput(Outputs.CacheHit, isExactKeyMatch.toString()); | ||||
|         if (lookupOnly) { | ||||
|             core.info(`Cache found and can be restored from key: ${cacheKey}`); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user