From e1dcaef709d7cf9e5a1389deb5821412ba975db0 Mon Sep 17 00:00:00 2001 From: GreemDev Date: Mon, 4 May 2026 23:32:53 -0500 Subject: [PATCH] fix: don't try to access .length if artifacts is undefined --- .forgejo/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 224685909..1cd3697fb 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -225,7 +225,7 @@ jobs: core.info(`Using pull request ${issue_number}`); const {data: {artifacts}} = await forgejo.rest.actions.listWorkflowRunArtifacts({owner, repo, run_id}); - if (!artifacts.length) { + if (artifacts == undefined || !artifacts.length) { return core.error(`No artifacts found`); } let body = `Download the artifacts for this pull request:\n`;