Unverified Commit ce3d5505 authored by Michael Daniels's avatar Michael Daniels
Browse files

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.
parent 31aff3bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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: {