0
1
Fork 0

use actual version in key

This commit is contained in:
Evgenii Korolevskii 2023-01-20 01:30:38 +01:00
parent 89d7939d38
commit 65f50caf42
2 changed files with 2 additions and 4 deletions

3
dist/setup/index.js vendored
View File

@ -63607,8 +63607,7 @@ function run() {
if (cache && cache_utils_1.isCacheFeatureAvailable()) {
const packageManager = 'default';
const cacheDependencyPath = core.getInput('cache-dependency-path');
core.info(`Version spec is ${versionSpec}, go version is ${goVersion}`);
yield cache_restore_1.restoreCache(goVersion, packageManager, cacheDependencyPath);
yield cache_restore_1.restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath);
}
// add problem matchers
const matchersPath = path_1.default.join(__dirname, '../..', 'matchers.json');

View File

@ -62,8 +62,7 @@ export async function run() {
if (cache && isCacheFeatureAvailable()) {
const packageManager = 'default';
const cacheDependencyPath = core.getInput('cache-dependency-path');
core.info(`Version spec is ${versionSpec}, go version is ${goVersion}`)
await restoreCache(goVersion, packageManager, cacheDependencyPath);
await restoreCache(parseGoVersion(goVersion), packageManager, cacheDependencyPath);
}
// add problem matchers