mirror of
https://code.forgejo.org/actions/download-artifact
synced 2025-06-08 04:58:20 +02:00
Merge ac50dab596
into 81ba80daa4
This commit is contained in:
commit
28b392dfa2
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ async function run(): Promise<void> {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const downloadPromises = artifacts.map(artifact =>
|
const downloadPromises = artifacts.map(artifact => () =>
|
||||||
artifactClient.downloadArtifact(artifact.id, {
|
artifactClient.downloadArtifact(artifact.id, {
|
||||||
...options,
|
...options,
|
||||||
path:
|
path:
|
||||||
|
@ -123,7 +123,7 @@ async function run(): Promise<void> {
|
||||||
|
|
||||||
const chunkedPromises = chunk(downloadPromises, PARALLEL_DOWNLOADS)
|
const chunkedPromises = chunk(downloadPromises, PARALLEL_DOWNLOADS)
|
||||||
for (const chunk of chunkedPromises) {
|
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`)
|
core.info(`Total of ${artifacts.length} artifact(s) downloaded`)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue