Skip to content

Commit 353927c

Browse files
committed
Try azure AppendBlob
1 parent 6f6e4a7 commit 353927c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/caching/github-actions-cache.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ export class GitHubActionsCache implements Cache {
324324
): Promise<boolean> {
325325
const url = new URL(uploadUrl);
326326
// Reference:
327-
// https://github.com/actions/toolkit/blob/500d0b42fee2552ae9eeb5933091fe2fbf14e72d/packages/cache/src/options.ts#L59
328-
const maxChunkSize = 32 * 1024 * 1024;
327+
// https://learn.microsoft.com/en-us/rest/api/storageservices/append-block?tabs=microsoft-entra-id#remarks
328+
const maxChunkSize = 100 * 1024 * 1024;
329329
// TODO: update to TypeScript 5.2 and use the new `using` syntax for the
330330
// budget object.
331331
const reservation = await fileBudget.reserve();
@@ -352,7 +352,7 @@ export class GitHubActionsCache implements Cache {
352352
headers: {
353353
'content-type': 'application/octet-stream',
354354
'content-length': `${chunkSize}`,
355-
'x-ms-blob-type': 'BlockBlob',
355+
'x-ms-blob-type': 'AppendBlob',
356356
authorization: undefined,
357357
},
358358
};

0 commit comments

Comments
 (0)