Merge ac50dab596e81527a3eb54c083984774ed4daa50 into fa0a91b85d4f404e444e00e005971372dc801d16

This commit is contained in:
Quentin Dreyer 2024-08-20 15:14:08 +00:00 committed by GitHub
commit 2018896ca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,7 +111,7 @@ async function run(): Promise<void> {
})
}
const downloadPromises = artifacts.map(artifact =>
const downloadPromises = artifacts.map(artifact => () =>
artifactClient.downloadArtifact(artifact.id, {
...options,
path:
@ -123,7 +123,7 @@ async function run(): Promise<void> {
const chunkedPromises = chunk(downloadPromises, PARALLEL_DOWNLOADS)
for (const chunk of chunkedPromises) {
await Promise.all(chunk)
await Promise.all(chunk.map(fn => fn()))
}
core.info(`Total of ${artifacts.length} artifact(s) downloaded`)