From fc6e694fd8ca5789f8f2db9a0dea8332858de1f9 Mon Sep 17 00:00:00 2001 From: Yuneng Jiang Date: Sat, 12 Sep 2026 14:04:14 -0700 Subject: [PATCH] ci: filter fixture artifact lookup by name --- .github/scripts/e2e_fetch_fixture_bundle.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/e2e_fetch_fixture_bundle.sh b/.github/scripts/e2e_fetch_fixture_bundle.sh index b76ced74b3b..89b18bfd23f 100755 --- a/.github/scripts/e2e_fetch_fixture_bundle.sh +++ b/.github/scripts/e2e_fetch_fixture_bundle.sh @@ -14,7 +14,7 @@ trap 'rm -rf "${WORKDIR}"' EXIT echo "resolving newest non-expired '${ARTIFACT_NAME}' artifact on ${REPO}@${BASE_BRANCH}" SELECTED="$( - gh api "repos/${REPO}/actions/artifacts" -X GET -f per_page=100 --paginate \ + gh api "repos/${REPO}/actions/artifacts" -X GET -f name="${ARTIFACT_NAME}" -f per_page=100 --paginate \ --jq ".artifacts[] | select(.name == \"${ARTIFACT_NAME}\" and .expired == false and .workflow_run.head_branch == \"${BASE_BRANCH}\") | {id, digest, created_at, run_id: .workflow_run.id, run_number: .workflow_run.run_number}" \ | jq -s 'sort_by(.created_at) | reverse | .[0] // empty' )"