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

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

yeah we totally have more than 30....

* Update upload-to-github.js
This commit is contained in:
trop[bot]
2019-09-09 06:14:57 -07:00
committed by Shelley Vohr
parent 4ac616b681
commit 27ceeb5e94

View File

@@ -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, ' '))