|
|
|
@ -3705,8 +3705,7 @@ function run() {
|
|
|
|
|
// stable will be true unless false is the exact input
|
|
|
|
|
// since getting unstable versions should be explicit
|
|
|
|
|
let stable = (core.getInput('stable') || 'true').toUpperCase() === 'TRUE';
|
|
|
|
|
const cacheInput = core.getInput('cache');
|
|
|
|
|
const cache = cacheInput.toUpperCase() === 'TRUE' ? 'default' : cacheInput;
|
|
|
|
|
const cache = core.getInput('cache');
|
|
|
|
|
core.info(`Setup go ${stable ? 'stable' : ''} version spec ${versionSpec}`);
|
|
|
|
|
if (versionSpec) {
|
|
|
|
|
let token = core.getInput('token');
|
|
|
|
@ -3724,7 +3723,7 @@ function run() {
|
|
|
|
|
if (isGhes()) {
|
|
|
|
|
throw new Error('Caching is not supported on GHES');
|
|
|
|
|
}
|
|
|
|
|
const packageManager = core.getInput('package-manager');
|
|
|
|
|
const packageManager = cache.toUpperCase() === 'TRUE' ? 'default' : cache;
|
|
|
|
|
const cacheDependencyPath = core.getInput('cache-dependency-path');
|
|
|
|
|
yield cache_restore_1.restoreCache(packageManager, cacheDependencyPath);
|
|
|
|
|
}
|
|
|
|
|