diff --git a/dist/index.js b/dist/index.js index 883c8ad..22a93b3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -41022,7 +41022,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}`) diff --git a/main.js b/main.js index b63e732..0f04bcd 100644 --- a/main.js +++ b/main.js @@ -135,7 +135,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}`)