From ce3d5505568c2b8cc6a0d05b908bdf1be302a1dd Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Sat, 22 Nov 2025 11:38:59 -0500 Subject: [PATCH] ci/github-script/bot: skip expired artifacts Should prevent "Unhandled error: HttpError: Artifact has expired", as was present in e.g. https://github.com/NixOS/nixpkgs/actions/runs/19594659032. --- 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 d14096add651..feab0629527b 100644 --- a/ci/github-script/bot.js +++ b/ci/github-script/bot.js @@ -46,7 +46,7 @@ module.exports = async ({ github, context, core, dry }) => { name: 'maintainers', }) ).data.artifacts[0] - if (!artifact) continue + if (!artifact || artifact.expired) continue await artifactClient.downloadArtifact(artifact.id, { findBy: {