mirror of
https://code.forgejo.org/forgejo/download-artifact.git
synced 2026-02-11 09:09:23 +00:00
Refactor loop
This commit is contained in:
parent
b81a615862
commit
24aef17bbf
1 changed files with 7 additions and 9 deletions
|
|
@ -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…
Reference in a new issue