mirror of
				https://github.com/actions/cache.git
				synced 2025-10-23 08:56:26 +08:00 
			
		
		
		
	Renamed variables and added tests
This commit is contained in:
		| @@ -25,11 +25,7 @@ async function restoreImpl( | ||||
|         } | ||||
|  | ||||
|         const primaryKey = core.getInput(Inputs.Key, { required: true }); | ||||
|         stateProvider.setState( | ||||
|             State.CachePrimaryKey, | ||||
|             primaryKey, | ||||
|             Outputs.InputtedKey | ||||
|         ); | ||||
|         stateProvider.setState(State.CachePrimaryKey, primaryKey); | ||||
|  | ||||
|         const restoreKeys = utils.getInputAsArray(Inputs.RestoreKeys); | ||||
|         const cachePaths = utils.getInputAsArray(Inputs.Path, { | ||||
| @@ -54,11 +50,7 @@ async function restoreImpl( | ||||
|         } | ||||
|  | ||||
|         // Store the matched cache key in states | ||||
|         stateProvider.setState( | ||||
|             State.CacheMatchedKey, | ||||
|             cacheKey, | ||||
|             Outputs.MatchedKey | ||||
|         ); | ||||
|         stateProvider.setState(State.CacheMatchedKey, cacheKey); | ||||
|  | ||||
|         const isExactKeyMatch = utils.isExactKeyMatch( | ||||
|             core.getInput(Inputs.Key, { required: true }), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user