Fix upload progress bug

This commit is contained in:
Bassem Dghaidi authored and GitHub committed 2024-12-02 03:55:57 -08:00
1 parent f51d6a5578
commit dd7886c186
3 files changed
+12 -7

No files matched your search

+4 -1
View File
@@ -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 {