diff --git a/src/input-providers/artifact-provider.ts b/src/input-providers/artifact-provider.ts index 70db876..db74760 100644 --- a/src/input-providers/artifact-provider.ts +++ b/src/input-providers/artifact-provider.ts @@ -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) diff --git a/src/utils/github-utils.ts b/src/utils/github-utils.ts index d0fcbbb..320f391 100644 --- a/src/utils/github-utils.ts +++ b/src/utils/github-utils.ts @@ -33,7 +33,6 @@ export async function downloadArtifact( octokit: InstanceType, artifactId: number, fileName: string, - size: number, token: string ): Promise { 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 {