mirror of
https://gitea.com/actions/gitea-release-action.git
synced 2024-11-21 17:49:38 +01:00
Merge pull request #3 from watho/fix_error_on_delete_attachment
Fix error on delete attachment
This commit is contained in:
commit
69c9a2be62
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -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}`)
|
||||
|
|
2
main.js
2
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}`)
|
||||
|
|
Loading…
Reference in a new issue