mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2026-05-13 07:30:46 +00:00
fix: don't try to access .length if artifacts is undefined
This commit is contained in:
parent
b222f671f3
commit
e1dcaef709
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ jobs:
|
||||||
core.info(`Using pull request ${issue_number}`);
|
core.info(`Using pull request ${issue_number}`);
|
||||||
|
|
||||||
const {data: {artifacts}} = await forgejo.rest.actions.listWorkflowRunArtifacts({owner, repo, run_id});
|
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`);
|
return core.error(`No artifacts found`);
|
||||||
}
|
}
|
||||||
let body = `Download the artifacts for this pull request:\n`;
|
let body = `Download the artifacts for this pull request:\n`;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue