mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-17 21:18:04 +08:00
Fix upload progress bug
This commit is contained in:
5
packages/cache/src/cache.ts
vendored
5
packages/cache/src/cache.ts
vendored
@@ -509,6 +509,10 @@ async function saveCacheV2(
|
||||
)
|
||||
}
|
||||
|
||||
// Set the archive size in the options, will be used to display the upload
|
||||
// progress
|
||||
options.archiveSizeBytes = archiveFileSize
|
||||
|
||||
core.debug('Reserving Cache')
|
||||
const version = utils.getCacheVersion(
|
||||
paths,
|
||||
@@ -561,7 +565,6 @@ async function saveCacheV2(
|
||||
} else {
|
||||
core.warning(`Failed to save: ${typedError.message}`)
|
||||
}
|
||||
throw error
|
||||
} finally {
|
||||
// Try to delete the archive to save space
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user