From f9957b1cbfa4d7bdebb40d98c680b946fc8410f0 Mon Sep 17 00:00:00 2001 From: Steven Date: Fri, 30 Sep 2022 15:20:33 -0400 Subject: [PATCH] Use the same variable name --- src/cache-restore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cache-restore.ts b/src/cache-restore.ts index 41cee761..e293a6be 100644 --- a/src/cache-restore.ts +++ b/src/cache-restore.ts @@ -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}`);