Skip to content

Commit e2facd6

Browse files
ci/github-script/bot: don't attempt to fetch pagination cursor if it's expired (#464096)
2 parents ae6aee0 + 74c0087 commit e2facd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/github-script/bot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ module.exports = async ({ github, context, core, dry }) => {
609609
).data.artifacts[0]
610610

611611
// If the artifact is not available, the next iteration starts at the beginning.
612-
if (artifact) {
612+
if (artifact && !artifact.expired) {
613613
stats.artifacts++
614614

615615
const { downloadPath } = await artifactClient.downloadArtifact(

0 commit comments

Comments
 (0)