mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 01:33:33 +00:00 
			
		
		
		
	Use the same variable name
This commit is contained in:
		
							parent
							
								
									ba8d6b0713
								
							
						
					
					
						commit
						f9957b1cbf
					
				@ -12,7 +12,7 @@ import {
 | 
			
		||||
} from './cache-utils';
 | 
			
		||||
 | 
			
		||||
export const restoreCache = async (
 | 
			
		||||
  nodeVersion: string,
 | 
			
		||||
  installedVersion: string,
 | 
			
		||||
  packageManager: string,
 | 
			
		||||
  cacheDependencyPath?: string
 | 
			
		||||
) => {
 | 
			
		||||
@ -37,7 +37,7 @@ export const restoreCache = async (
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const nodeMajor = nodeVersion.split('.')[0];
 | 
			
		||||
  const nodeMajor = installedVersion.split('.')[0];
 | 
			
		||||
  const primaryKey = `node-cache-${nodeMajor}-${platform}-${packageManager}-${fileHash}`;
 | 
			
		||||
  core.debug(`primary key is ${primaryKey}`);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user