From 74c008760e7b971fc6ca4f2cd1aafdceec431187 Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Sat, 22 Nov 2025 15:36:17 -0500 Subject: [PATCH] ci/github-script/bot: don't attempt to fetch pagination cursor if it's expired I fixed this for the maintainer maps, but the artifact that was causing the particular issue that prompted me to try to fix it was actually the pagination cursor. So fix that too. Related: #464046. --- ci/github-script/bot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/github-script/bot.js b/ci/github-script/bot.js index 7d279c42c46e..f178b6028783 100644 --- a/ci/github-script/bot.js +++ b/ci/github-script/bot.js @@ -609,7 +609,7 @@ module.exports = async ({ github, context, core, dry }) => { ).data.artifacts[0] // If the artifact is not available, the next iteration starts at the beginning. - if (artifact) { + if (artifact && !artifact.expired) { stats.artifacts++ const { downloadPath } = await artifactClient.downloadArtifact(