mirror of https://github.com/actions/toolkit
sets auto retry to false
parent
f120696e60
commit
81041b245a
|
@ -250,7 +250,11 @@ export async function downloadCacheSingleThread(
|
|||
const oauth2Client = new OAuth2Client()
|
||||
oauth2Client.setCredentials({access_token: gcsToken})
|
||||
const storage = new Storage({
|
||||
authClient: oauth2Client
|
||||
authClient: oauth2Client,
|
||||
retryOptions: {
|
||||
autoRetry: false,
|
||||
maxRetries: 1
|
||||
}
|
||||
})
|
||||
await downloadCacheGCP(storage, archiveLocation, archivePath)
|
||||
break
|
||||
|
|
|
@ -330,8 +330,6 @@ export async function downloadCacheGCP(
|
|||
const {bucketName, objectName} =
|
||||
utils.retrieveGCSBucketAndObjectName(archiveLocation)
|
||||
|
||||
storage.retryOptions.totalTimeout = 120
|
||||
|
||||
await storage.bucket(bucketName).file(objectName).download({
|
||||
destination: archivePath,
|
||||
validation: 'crc32c'
|
||||
|
|
Loading…
Reference in New Issue