Compare commits

...

3 Commits

Author SHA1 Message Date
GreemDev
d2b2d65061 chore: Remove unused variable. 2026-05-04 23:33:28 -05:00
GreemDev
e1dcaef709 fix: don't try to access .length if artifacts is undefined 2026-05-04 23:32:53 -05:00
GreemDev
b222f671f3 fix: use run_number instead of run_id 2026-05-04 23:32:35 -05:00

View File

@@ -218,14 +218,13 @@ jobs:
});
const {owner, repo} = context.repo;
const run_id = ${{ forgejo.run_id }};
const pull_head_sha = '${{ forgejo.event.workflow_run.head_sha }}';
const run_id = ${{ forgejo.run_number }};
const issue_number = ${{ forgejo.event.pull_request.number }};
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`;