mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 14:27:10 +01:00
artifact-provider: improve logging
This commit is contained in:
parent
da9cc2c0d9
commit
1ae86a176d
4 changed files with 65 additions and 35 deletions
|
|
@ -74,7 +74,7 @@ export async function downloadArtifact(
|
|||
|
||||
core.info(`Downloading ${url}`)
|
||||
downloadStream.on('downloadProgress', ({transferred}) => {
|
||||
const percentage = Math.round(transferred / size * 100)
|
||||
const percentage = Math.round((transferred / size) * 100)
|
||||
core.info(`Progress: ${transferred}/${size} (${percentage}%)`)
|
||||
})
|
||||
await asyncStream(downloadStream, fileWriterStream)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue