mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 18:23:16 +08:00
Force use of Azure for restoreCacheV2
This commit is contained in:
5
packages/cache/src/cache.ts
vendored
5
packages/cache/src/cache.ts
vendored
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user