mirror of
https://github.com/actions/setup-go.git
synced 2025-07-16 20:15:14 -06:00
Change behavior of the exception throwing
This commit is contained in:
parent
c64d0e04b0
commit
8c8442b8f8
5 changed files with 52 additions and 37 deletions
|
@ -16,7 +16,7 @@ export const restoreCache = async (
|
|||
const platform = process.env.RUNNER_OS;
|
||||
const versionSpec = core.getInput('go-version');
|
||||
|
||||
const cachePath = await getCacheDirectoryPath(packageManagerInfo);
|
||||
const cachePaths = await getCacheDirectoryPath(packageManagerInfo);
|
||||
|
||||
const dependencyFilePath = cacheDependencyPath
|
||||
? cacheDependencyPath
|
||||
|
@ -34,7 +34,7 @@ export const restoreCache = async (
|
|||
|
||||
core.saveState(State.CachePrimaryKey, primaryKey);
|
||||
|
||||
const cacheKey = await cache.restoreCache(cachePath, primaryKey);
|
||||
const cacheKey = await cache.restoreCache(cachePaths, primaryKey);
|
||||
core.setOutput('cache-hit', Boolean(cacheKey));
|
||||
|
||||
if (!cacheKey) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue