From ae82de5d80cbfc9ee989822e5ec1ff86567b1803 Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Date: Mon, 17 Jun 2024 03:35:51 -0700 Subject: [PATCH] Add fix cache paths --- dist/restore-only/index.js | 2 +- dist/restore/index.js | 2 +- dist/save-only/index.js | 2 +- dist/save/index.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js index fa6ad50..c916c47 100644 --- a/dist/restore-only/index.js +++ b/dist/restore-only/index.js @@ -3336,7 +3336,7 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr } core.info(`Cache hit for: ${signedDownloadURL.blobs[0].key}`); core.info(`Starting download of artifact to: ${paths[0]}`); - yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]); + yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, path.dirname(paths[0])); core.info(`Artifact download completed successfully.`); return keys[0]; } diff --git a/dist/restore/index.js b/dist/restore/index.js index d788a5a..1db515d 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -3336,7 +3336,7 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr } core.info(`Cache hit for: ${signedDownloadURL.blobs[0].key}`); core.info(`Starting download of artifact to: ${paths[0]}`); - yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]); + yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, path.dirname(paths[0])); core.info(`Artifact download completed successfully.`); return keys[0]; } diff --git a/dist/save-only/index.js b/dist/save-only/index.js index 42c3492..dd587b8 100644 --- a/dist/save-only/index.js +++ b/dist/save-only/index.js @@ -3336,7 +3336,7 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr } core.info(`Cache hit for: ${signedDownloadURL.blobs[0].key}`); core.info(`Starting download of artifact to: ${paths[0]}`); - yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]); + yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, path.dirname(paths[0])); core.info(`Artifact download completed successfully.`); return keys[0]; } diff --git a/dist/save/index.js b/dist/save/index.js index 5725eea..1cbab65 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -3336,7 +3336,7 @@ function restoreCachev2(paths, primaryKey, restoreKeys, options, enableCrossOsAr } core.info(`Cache hit for: ${signedDownloadURL.blobs[0].key}`); core.info(`Starting download of artifact to: ${paths[0]}`); - yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, paths[0]); + yield (0, download_cache_1.StreamExtract)(signedDownloadURL.blobs[0].signedUrl, path.dirname(paths[0])); core.info(`Artifact download completed successfully.`); return keys[0]; }