Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
yayuyokitano committed May 27, 2023
1 parent 9510ce1 commit b2edcf1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ export async function createUpload(
): Promise<InitialUploadDetails> {
const url = `${baseURL}/addons/upload/`
const body = new FormData()
body.append('upload', createReadStream(resolve(xpiPath)))
const stream = createReadStream(resolve(xpiPath))

core.debug(`Uploading ${xpiPath}, length ${stream.readableLength}`)
body.append('upload', stream)
body.append('channel', 'listed')

const response = await axios.post(url, body, {
Expand Down

0 comments on commit b2edcf1

Please sign in to comment.