fix(): cache resolve version input (#267)

This commit is contained in:
n33pm
2022-10-17 18:33:22 +02:00
committed by GitHub
parent f556e5b7e0
commit c4a742cab1
4 changed files with 20 additions and 8 deletions

View File

@ -9,12 +9,12 @@ import {PackageManagerInfo} from './package-managers';
import {getCacheDirectoryPath, getPackageManagerInfo} from './cache-utils';
export const restoreCache = async (
versionSpec: string,
packageManager: string,
cacheDependencyPath?: string
) => {
const packageManagerInfo = await getPackageManagerInfo(packageManager);
const platform = process.env.RUNNER_OS;
const versionSpec = core.getInput('go-version');
const cachePaths = await getCacheDirectoryPath(packageManagerInfo);