mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 13:29:10 +08:00 
			
		
		
		
	test
This commit is contained in:
		
							
								
								
									
										1
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@@ -50706,6 +50706,7 @@ function restoreImpl(stateProvider) {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
            // Store the matched cache key in states
 | 
					            // Store the matched cache key in states
 | 
				
			||||||
            stateProvider.setState(constants_1.State.CacheMatchedKey, cacheKey);
 | 
					            stateProvider.setState(constants_1.State.CacheMatchedKey, cacheKey);
 | 
				
			||||||
 | 
					            core.debug("setState: " + constants_1.State.CacheMatchedKey + " " + cacheKey);
 | 
				
			||||||
            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());
 | 
				
			||||||
            core.info(`Cache restored from key: ${cacheKey}`);
 | 
					            core.info(`Cache restored from key: ${cacheKey}`);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,6 +51,7 @@ async function restoreImpl(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // Store the matched cache key in states
 | 
					        // Store the matched cache key in states
 | 
				
			||||||
        stateProvider.setState(State.CacheMatchedKey, cacheKey);
 | 
					        stateProvider.setState(State.CacheMatchedKey, cacheKey);
 | 
				
			||||||
 | 
					        core.debug("setState: " + State.CacheMatchedKey + " " + cacheKey);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const isExactKeyMatch = utils.isExactKeyMatch(
 | 
					        const isExactKeyMatch = utils.isExactKeyMatch(
 | 
				
			||||||
            core.getInput(Inputs.Key, { required: true }),
 | 
					            core.getInput(Inputs.Key, { required: true }),
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user