From 7b524f5cd82505c0f4e65168645901b35b26e86a Mon Sep 17 00:00:00 2001 From: Mark Lee Date: Thu, 9 Jan 2020 17:28:15 -0800 Subject: [PATCH] fix: pass through cacheRoot when downloading SHASUMS256.txt --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 5b50f9248..ea348e508 100644 --- a/src/index.ts +++ b/src/index.ts @@ -75,7 +75,7 @@ export async function downloadArtifact( // Do not check if the file exists in the cache when force === true if (!artifactDetails.force) { - d(`Checking the cache for ${fileName} (${url})`); + d(`Checking the cache (${artifactDetails.cacheRoot}) for ${fileName} (${url})`); const cachedPath = await cache.getPathForFileInCache(url, fileName); if (cachedPath === null) { @@ -121,6 +121,7 @@ export async function downloadArtifact( artifactName: 'SHASUMS256.txt', force: artifactDetails.force, downloadOptions: artifactDetails.downloadOptions, + cacheRoot: artifactDetails.cacheRoot, downloader: artifactDetails.downloader, mirrorOptions: artifactDetails.mirrorOptions, });