mirror of
https://github.com/actions/setup-node.git
synced 2025-04-24 04:20:49 +00:00
Use the same variable name
This commit is contained in:
parent
ba8d6b0713
commit
f9957b1cbf
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ import {
|
||||||
} from './cache-utils';
|
} from './cache-utils';
|
||||||
|
|
||||||
export const restoreCache = async (
|
export const restoreCache = async (
|
||||||
nodeVersion: string,
|
installedVersion: string,
|
||||||
packageManager: string,
|
packageManager: string,
|
||||||
cacheDependencyPath?: 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}`;
|
const primaryKey = `node-cache-${nodeMajor}-${platform}-${packageManager}-${fileHash}`;
|
||||||
core.debug(`primary key is ${primaryKey}`);
|
core.debug(`primary key is ${primaryKey}`);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue