Skip to content

Commit 74c0087

Browse files
committed
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.
1 parent ae6aee0 commit 74c0087

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)