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
This commit is contained in:
Samuel Attard 2019-09-07 14:48:35 -07:00 committed by GitHub
parent 6e9a23a884
commit d395799917
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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