Force use of Azure for restoreCacheV2

This commit is contained in:
Bassem Dghaidi
2024-11-28 07:42:07 -08:00
committed by GitHub
parent 62f5f1885b
commit 8c5f6f2dc5
2 changed files with 15 additions and 7 deletions

View File

@@ -218,6 +218,11 @@ async function restoreCacheV2(
options?: DownloadOptions,
enableCrossOsArchive = false
): Promise<string | undefined> {
// Override UploadOptions to force the use of Azure
options = {
...options,
useAzureSdk: true
}
restoreKeys = restoreKeys || []
const keys = [primaryKey, ...restoreKeys]