mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 10:55:23 -08:00
Removed progress percentage as there is no way to deduce content length
This commit is contained in:
@@ -68,7 +68,7 @@ export class ArtifactProvider implements InputProvider {
|
||||
|
||||
for (const art of artifacts) {
|
||||
const fileName = `${art.name}.zip`
|
||||
await downloadArtifact(this.octokit, art.id, fileName, art.size_in_bytes, this.token)
|
||||
await downloadArtifact(this.octokit, art.id, fileName, this.token)
|
||||
core.startGroup(`Reading archive ${fileName}`)
|
||||
try {
|
||||
const reportName = this.getReportName(art.name)
|
||||
|
||||
@@ -33,7 +33,6 @@ export async function downloadArtifact(
|
||||
octokit: InstanceType<typeof GitHub>,
|
||||
artifactId: number,
|
||||
fileName: string,
|
||||
size: number,
|
||||
token: string
|
||||
): Promise<void> {
|
||||
core.startGroup(`Downloading artifact ${fileName}`)
|
||||
@@ -74,8 +73,7 @@ export async function downloadArtifact(
|
||||
|
||||
core.info(`Downloading ${url}`)
|
||||
downloadStream.on('downloadProgress', ({transferred}) => {
|
||||
const percentage = Math.round((transferred / size) * 100)
|
||||
core.info(`Progress: ${transferred}/${size} (${percentage}%)`)
|
||||
core.info(`Progress: ${transferred} B`)
|
||||
})
|
||||
await asyncStream(downloadStream, fileWriterStream)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user