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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user