From 1d04b4ea9f68aa0c9a1c86ee4fb5760b1c0aea14 Mon Sep 17 00:00:00 2001 From: Sander Muller Date: Wed, 30 Sep 2026 09:29:56 +0200 Subject: [PATCH] Find the base phar checksum artifact by name listWorkflowRunArtifacts returns 30 artifacts per page, and a Compile PHAR run now has more (59 on 702fde29d). The checksum artifact was on page 2, so "Download base SHA PHAR" failed on every pull request that changes the compiler. The name filter returns only that artifact. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/scripts/find-artifact.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/scripts/find-artifact.ts b/.github/scripts/find-artifact.ts index 3f3524c9cce..1c36d367107 100644 --- a/.github/scripts/find-artifact.ts +++ b/.github/scripts/find-artifact.ts @@ -42,10 +42,13 @@ module.exports = async ({github, context, core}: Inputs) => { continue; } + // Filter by name on the server: a run of this workflow has more artifacts + // than one page holds, so an unfiltered first page can miss this one. const artifactsResp = await github.rest.actions.listWorkflowRunArtifacts({ owner: context.repo.owner, repo: context.repo.repo, run_id: run.id, + name: artifactName, }); const artifact = artifactsResp.data.artifacts.find(a => a.name === artifactName);