Skip to content

Commit

Permalink
directly query the desired artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 26, 2024
1 parent 4605398 commit cc212c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/post-test-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit cc212c0

Please sign in to comment.