Merge pull request #1974 from actions/list-artifacts-fix

Dont skip pages
This commit is contained in:
JoannaaKL 2025-03-06 09:35:57 +01:00 committed by GitHub
commit d70fb49aaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,14 +70,14 @@ export async function listArtifactsPublic(
createdAt: artifact.created_at ? new Date(artifact.created_at) : undefined
})
}
// Move to the next page
currentPageNumber++
// Iterate over any remaining pages
for (
currentPageNumber;
currentPageNumber < numberOfPages;
currentPageNumber++
) {
currentPageNumber++
debug(`Fetching page ${currentPageNumber} of artifact list`)
const {data: listArtifactResponse} =