From cc212c007a4122ee0c92d1ae7a0405ddda2c6d40 Mon Sep 17 00:00:00 2001 From: Michael Ekstrand Date: Fri, 26 Jul 2024 09:21:08 -0400 Subject: [PATCH] directly query the desired artifact --- .github/workflows/post-test-results.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/post-test-results.yml b/.github/workflows/post-test-results.yml index 8e0764a05..a811840c7 100644 --- a/.github/workflows/post-test-results.yml +++ b/.github/workflows/post-test-results.yml @@ -29,11 +29,10 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, run_id: context.payload.workflow_run.id, + name: "coverage-report" }); console.info("found %d artifacts", allArtifacts.data.artifacts.length) - artifact = allArtifacts.data.artifacts.find((artifact) => { - return artifact.name == "coverage-report" - }); + artifact = allArtifacts[0]; if (!artifact) { console.info('could not find artifact, waiting and trying again') await new Promise((ok) => setTimeout(() => ok(), 15000));