Use the same variable name

This commit is contained in:
Steven 2022-09-30 15:20:33 -04:00
parent ba8d6b0713
commit f9957b1cbf

View file

@ -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}`);