mirror of
https://gitea.com/actions/gitea-release-action.git
synced 2024-11-10 10:21:07 +07: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
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({
|
await client.repository.repoDeleteReleaseAttachment({
|
||||||
owner: owner,
|
owner: owner,
|
||||||
repo: repo,
|
repo: repo,
|
||||||
id: id,
|
id: release_id,
|
||||||
attachmentId: attachment.id,
|
attachmentId: attachment.id,
|
||||||
})
|
})
|
||||||
console.log(`Successfully deleted old release attachment ${attachment.name}`)
|
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({
|
await client.repository.repoDeleteReleaseAttachment({
|
||||||
owner: owner,
|
owner: owner,
|
||||||
repo: repo,
|
repo: repo,
|
||||||
id: id,
|
id: release_id,
|
||||||
attachmentId: attachment.id,
|
attachmentId: attachment.id,
|
||||||
})
|
})
|
||||||
console.log(`Successfully deleted old release attachment ${attachment.name}`)
|
console.log(`Successfully deleted old release attachment ${attachment.name}`)
|
||||||
|
Loading…
Reference in New Issue
Block a user