Refactor loop

This commit is contained in:
Ryan Ghadimi 2025-03-12 14:02:51 +00:00
parent b81a615862
commit 24aef17bbf

View File

@ -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.`
)
}
}
}