From d3957999179c183c8f3a6d6b0d2a24ecf19fd9d2 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Sat, 7 Sep 2019 14:48:35 -0700 Subject: [PATCH] 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 --- script/release/uploaders/upload-to-github.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/release/uploaders/upload-to-github.js b/script/release/uploaders/upload-to-github.js index 121dd89a90ec..f53646b4884b 100644 --- a/script/release/uploaders/upload-to-github.js +++ b/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, ' '))