Skip to content

Commit

Permalink
More debug
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstaro committed Jul 3, 2020
1 parent 8c679d7 commit c7fa458
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2245,11 +2245,11 @@ function upload_to_release(release, file, asset_name, tag, overwrite, octokit) {
core.debug(`No pre-existing asset called ${asset_name} found in release ${tag}. All good.`);
}
core.debug(`Uploading ${file} to ${asset_name} in release ${tag}.`);
console.log(file_bytes);
console.log(file_bytes.toString());
yield octokit.repos.uploadReleaseAsset({
url: release.data.upload_url,
name: asset_name,
file: file_bytes,
data: file_bytes,
headers: {
'content-type': 'binary/octet-stream',
'content-length': file_size
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ async function upload_to_release(
}

core.debug(`Uploading ${file} to ${asset_name} in release ${tag}.`)
console.log(file_bytes)
console.log(file_bytes.toString())
await octokit.repos.uploadReleaseAsset({
url: release.data.upload_url,
name: asset_name,
file: file_bytes,
data: file_bytes,
headers: {
'content-type': 'binary/octet-stream',
'content-length': file_size
Expand Down

0 comments on commit c7fa458

Please sign in to comment.