mirror of
				https://github.com/actions/cache.git
				synced 2025-10-23 08:56:26 +08:00 
			
		
		
		
	Some cleanup
This commit is contained in:
		| @@ -48,9 +48,9 @@ async function run(): Promise<void> { | ||||
|         } | ||||
|  | ||||
|         if (!cacheKey) { | ||||
|             if (core.getBooleanInput(Inputs.StrictRestore) == true) { | ||||
|             if (core.getBooleanInput(Inputs.FailOnCacheMiss) == true) { | ||||
|                 throw new Error( | ||||
|                     `Cache with the given input key ${primaryKey} is not found, hence exiting the workflow as the strict-restore requirement is not met.` | ||||
|                     `Cache with the given input key ${primaryKey} is not found, hence exiting the workflow as the fail-on-cache-miss requirement is not met.` | ||||
|                 ); | ||||
|             } | ||||
|             core.info( | ||||
| @@ -69,10 +69,10 @@ async function run(): Promise<void> { | ||||
|  | ||||
|         if ( | ||||
|             !isExactKeyMatch && | ||||
|             core.getBooleanInput(Inputs.StrictRestore) == true | ||||
|             core.getBooleanInput(Inputs.FailOnCacheMiss) == true | ||||
|         ) { | ||||
|             throw new Error( | ||||
|                 `Restored cache key doesn't match the given input key ${primaryKey}, hence exiting the workflow as the strict-restore requirement is not met.` | ||||
|                 `Restored cache key doesn't match the given input key ${primaryKey}, hence exiting the workflow as the fail-on-cache-miss requirement is not met.` | ||||
|             ); | ||||
|         } | ||||
|         core.info(`Cache restored from key: ${cacheKey}`); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user