mirror of https://github.com/actions/toolkit
adjusts chunk size
parent
8400948874
commit
d0787ac29d
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "github-actions.warp-cache",
|
"name": "github-actions.warp-cache",
|
||||||
"version": "1.0.3",
|
"version": "1.0.6",
|
||||||
"preview": true,
|
"preview": true,
|
||||||
"description": "Github action to use WarpBuild's in-house cache offering",
|
"description": "Github action to use WarpBuild's in-house cache offering",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -310,7 +310,8 @@ export async function downloadCacheMultipartGCP(
|
||||||
|
|
||||||
const transferManager = new TransferManager(storage.bucket(bucketName))
|
const transferManager = new TransferManager(storage.bucket(bucketName))
|
||||||
await transferManager.downloadFileInChunks(objectName, {
|
await transferManager.downloadFileInChunks(objectName, {
|
||||||
destination: archivePath
|
destination: archivePath,
|
||||||
|
chunkSizeBytes: 8 * 1024 * 1024 // 8MB chunk size
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.debug(`Failed to download cache: ${error}`)
|
core.debug(`Failed to download cache: ${error}`)
|
||||||
|
|
Loading…
Reference in New Issue