Browse Source

build: get all the release assets when looking for one to delete (#20157)

* build: get all the release assets when looking for one to delete

yeah we totally have more than 30....

* Update upload-to-github.js
Samuel Attard 5 years ago
parent
commit
d395799917
1 changed files with 2 additions and 1 deletions
  1. 2 1
      script/release/uploaders/upload-to-github.js

+ 2 - 1
script/release/uploaders/upload-to-github.js

@@ -53,7 +53,8 @@ function uploadToGitHub () {
       octokit.repos.listAssetsForRelease({
         owner: 'electron',
         repo: targetRepo,
-        release_id: releaseId
+        release_id: releaseId,
+        per_page: 100
       }).then(assets => {
         console.log('Got list of assets for existing release:')
         console.log(JSON.stringify(assets.data, null, '  '))