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:
parent
6e9a23a884
commit
d395799917
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ function uploadToGitHub () {
|
||||||
octokit.repos.listAssetsForRelease({
|
octokit.repos.listAssetsForRelease({
|
||||||
owner: 'electron',
|
owner: 'electron',
|
||||||
repo: targetRepo,
|
repo: targetRepo,
|
||||||
release_id: releaseId
|
release_id: releaseId,
|
||||||
|
per_page: 100
|
||||||
}).then(assets => {
|
}).then(assets => {
|
||||||
console.log('Got list of assets for existing release:')
|
console.log('Got list of assets for existing release:')
|
||||||
console.log(JSON.stringify(assets.data, null, ' '))
|
console.log(JSON.stringify(assets.data, null, ' '))
|
||||||
|
|
Loading…
Reference in a new issue