Skip to content

Commit

Permalink
Add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
yayuyokitano committed May 27, 2023
1 parent b2edcf1 commit dc755a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 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 @@ -43,9 +43,12 @@ export async function tryUpdateExtension(
const body = new FormData()
body.append('upload', uuid)
if (srcPath) {
body.append('source', createReadStream(resolve(srcPath)))
const stream = createReadStream(resolve(srcPath))
core.debug(`Uploading ${srcPath}, length ${stream.readableLength}`)
body.append('source', stream)
}

core.debug(`Updating extension ${guid} with ${uuid}`)
const response = await axios.post(url, body, {
headers: {
...body.getHeaders(),
Expand Down

0 comments on commit dc755a5

Please sign in to comment.