diff --git a/dist/index.js b/dist/index.js index 28ddcb0..55a0f98 100644 --- a/dist/index.js +++ b/dist/index.js @@ -41001,17 +41001,17 @@ async function uploadFiles(client, owner, repo, release_id, all_files) { }) console.log(`Successfully deleted old release attachment ${attachment.name}`) } - const content = external_fs_.readFileSync(filepath); - const blob = new external_buffer_.Blob([content]); - await client.repository.repoCreateReleaseAttachment({ - owner: owner, - repo: repo, - id: release_id, - attachment: blob, - name: external_path_.basename(filepath), - }) - console.log(`Successfully uploaded release attachment ${filepath}`) } + const content = external_fs_.readFileSync(filepath); + const blob = new external_buffer_.Blob([content]); + await client.repository.repoCreateReleaseAttachment({ + owner: owner, + repo: repo, + id: release_id, + attachment: blob, + name: external_path_.basename(filepath), + }) + console.log(`Successfully uploaded release attachment ${filepath}`) } } diff --git a/main.js b/main.js index b868518..a69fcb0 100644 --- a/main.js +++ b/main.js @@ -114,17 +114,17 @@ async function uploadFiles(client, owner, repo, release_id, all_files) { }) console.log(`Successfully deleted old release attachment ${attachment.name}`) } - const content = fs.readFileSync(filepath); - const blob = new Blob([content]); - await client.repository.repoCreateReleaseAttachment({ - owner: owner, - repo: repo, - id: release_id, - attachment: blob, - name: path.basename(filepath), - }) - console.log(`Successfully uploaded release attachment ${filepath}`) } + const content = fs.readFileSync(filepath); + const blob = new Blob([content]); + await client.repository.repoCreateReleaseAttachment({ + owner: owner, + repo: repo, + id: release_id, + attachment: blob, + name: path.basename(filepath), + }) + console.log(`Successfully uploaded release attachment ${filepath}`) } }