Fix upload progress bug

This commit is contained in:
Bassem Dghaidi
2024-12-02 03:55:57 -08:00
committed by GitHub
parent db1d01308c
commit d89855bb90
3 changed files with 12 additions and 7 deletions

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 {