ci/github-script/bot: don't attempt to fetch pagination cursor if it's expired (#464096)

This commit is contained in:
Wolfgang Walther
2025-11-22 20:42:06 +00:00
committed by GitHub
+1 -1
View File
@@ -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(