mirror of
https://github.com/actions/download-artifact.git
synced 2025-08-20 23:50:16 +00:00
Merge ac50dab596e81527a3eb54c083984774ed4daa50 into 81ba80daa45160feea2af6c09baecd2a002d759d
This commit is contained in:
commit
28b392dfa2
@ -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`)
|
||||
|
Loading…
x
Reference in New Issue
Block a user