diff --git a/main.js b/main.js index f817c2d..b5723ca 100644 --- a/main.js +++ b/main.js @@ -109,7 +109,7 @@ async function uploadFiles(client, owner, repo, release_id, all_files) { await client.repository.repoDeleteReleaseAttachment({ owner: owner, repo: repo, - id: id, + id: release_id, attachmentId: attachment.id, }) console.log(`Successfully deleted old release attachment ${attachment.name}`)