mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-05-06 13:25:46 +00:00
fix: don't try to access .length if artifacts is undefined
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user