Skip to content

Commit

Permalink
chore: add extra logging to the upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Oct 4, 2018
1 parent 21348b9 commit baf40fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions script/upload-to-github.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ function uploadToGitHub () {
retry++
github.repos.getRelease(githubOpts).then(release => {
const existingAssets = release.data.assets.filter(asset => asset.name === fileName)
console.log('There are', release.data.assets.length, 'existing releases')
console.log(JSON.stringify(release.data.assets))
console.log(githubOpts)
if (existingAssets.length > 0) {
console.log(`${fileName} already exists; will delete before retrying upload.`)
github.repos.deleteAsset({
Expand Down

0 comments on commit baf40fd

Please sign in to comment.