mirror of
https://github.com/actions/download-artifact.git
synced 2025-03-31 06:30:12 +08:00
Refactor loop
This commit is contained in:
parent
b81a615862
commit
24aef17bbf
@ -124,15 +124,13 @@ async function run(): Promise<void> {
|
||||
|
||||
const chunkedPromises = chunk(downloadPromises, PARALLEL_DOWNLOADS)
|
||||
for (const chunk of chunkedPromises) {
|
||||
await Promise.all(chunk)
|
||||
}
|
||||
|
||||
for (const dlPromise of downloadPromises) {
|
||||
const outcome = await dlPromise
|
||||
if (outcome.digestMismatch) {
|
||||
core.warning(
|
||||
`Artifact digest validation failed. Please verify the integrity of the artifact.`
|
||||
)
|
||||
const result = await Promise.all(chunk)
|
||||
for (const outcome of result) {
|
||||
if (outcome.digestMismatch) {
|
||||
core.warning(
|
||||
`Artifact digest validation failed. Please verify the integrity of the artifact.`
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user