mirror of
https://github.com/actions/toolkit.git
synced 2026-08-12 00:00:17 +02:00
Fix upload progress bug
This commit is contained in:
Vendored
+4
-1
@@ -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