Skip to content

Commit 7b524f5

Browse files
committed
fix: pass through cacheRoot when downloading SHASUMS256.txt
1 parent ed4275b commit 7b524f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export async function downloadArtifact(
7575

7676
// Do not check if the file exists in the cache when force === true
7777
if (!artifactDetails.force) {
78-
d(`Checking the cache for ${fileName} (${url})`);
78+
d(`Checking the cache (${artifactDetails.cacheRoot}) for ${fileName} (${url})`);
7979
const cachedPath = await cache.getPathForFileInCache(url, fileName);
8080

8181
if (cachedPath === null) {
@@ -121,6 +121,7 @@ export async function downloadArtifact(
121121
artifactName: 'SHASUMS256.txt',
122122
force: artifactDetails.force,
123123
downloadOptions: artifactDetails.downloadOptions,
124+
cacheRoot: artifactDetails.cacheRoot,
124125
downloader: artifactDetails.downloader,
125126
mirrorOptions: artifactDetails.mirrorOptions,
126127
});

0 commit comments

Comments
 (0)