From c7fa458e379bb0a4b4b43aed112873fd02850cd8 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 3 Jul 2020 07:12:34 +0200 Subject: [PATCH] More debug --- dist/index.js | 4 ++-- src/main.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index b4efe2a..6cd948c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 diff --git a/src/main.ts b/src/main.ts index 84558a8..1430fa1 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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