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(