mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 10:14:02 +00:00 
			
		
		
		
	Updated logs
This commit is contained in:
		
							parent
							
								
									da7d0c0cb6
								
							
						
					
					
						commit
						cd1e32a41b
					
				
							
								
								
									
										4
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@ -48987,7 +48987,7 @@ function run() {
 | 
			
		||||
            const cacheKey = yield cache.restoreCache(cachePaths, primaryKey, restoreKeys);
 | 
			
		||||
            if (!cacheKey) {
 | 
			
		||||
                if (core.getInput(constants_1.Inputs.StrictRestore) == "true") {
 | 
			
		||||
                    throw new Error("Cache with given key not found, hence exiting the workflow as the strict-restore requirement is not met.");
 | 
			
		||||
                    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.`);
 | 
			
		||||
                }
 | 
			
		||||
                core.info(`Cache not found for input keys: ${[
 | 
			
		||||
                    primaryKey,
 | 
			
		||||
@ -49000,7 +49000,7 @@ function run() {
 | 
			
		||||
            const isExactKeyMatch = utils.isExactKeyMatch(primaryKey, cacheKey);
 | 
			
		||||
            utils.setCacheHitOutput(isExactKeyMatch);
 | 
			
		||||
            if (!isExactKeyMatch && core.getInput(constants_1.Inputs.StrictRestore) == "true") {
 | 
			
		||||
                throw new Error("Restored cache doesn't match the key in the input, hence exiting the workflow as the strict-restore requirement is not met.");
 | 
			
		||||
                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.`);
 | 
			
		||||
            }
 | 
			
		||||
            core.info(`Cache restored from key: ${cacheKey}`);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -38,7 +38,7 @@ async function run(): Promise<void> {
 | 
			
		||||
        if (!cacheKey) {
 | 
			
		||||
            if (core.getInput(Inputs.StrictRestore) == "true") {
 | 
			
		||||
                throw new Error(
 | 
			
		||||
                    "Cache with given key 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 strict-restore requirement is not met.`
 | 
			
		||||
                );
 | 
			
		||||
            }
 | 
			
		||||
            core.info(
 | 
			
		||||
@ -59,7 +59,7 @@ async function run(): Promise<void> {
 | 
			
		||||
 | 
			
		||||
        if (!isExactKeyMatch && core.getInput(Inputs.StrictRestore) == "true") {
 | 
			
		||||
            throw new Error(
 | 
			
		||||
                "Restored cache doesn't match the key in the input, 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 strict-restore requirement is not met.`
 | 
			
		||||
            );
 | 
			
		||||
        }
 | 
			
		||||
        core.info(`Cache restored from key: ${cacheKey}`);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user