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.
This commit is contained in:
Michael Daniels
2025-11-22 11:39:10 -05:00
parent 31aff3bf32
commit ce3d550556
+1 -1
View File
@@ -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: {