mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-25 12:55:32 +00:00
Adds input for upload chunk size
This commit is contained in:
parent
d606e039ae
commit
a6f1f4b32e
10 changed files with 84 additions and 11 deletions
|
@ -41,7 +41,9 @@ async function run(): Promise<void> {
|
|||
});
|
||||
|
||||
try {
|
||||
await cache.saveCache(cachePaths, primaryKey);
|
||||
await cache.saveCache(cachePaths, primaryKey, {
|
||||
uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
|
||||
});
|
||||
} catch (error) {
|
||||
if (error.name === cache.ValidationError.name) {
|
||||
throw error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue