More debug
This commit is contained in:
parent
8c679d7487
commit
c7fa458e37
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -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(`No pre-existing asset called ${asset_name} found in release ${tag}. All good.`);
|
||||||
}
|
}
|
||||||
core.debug(`Uploading ${file} to ${asset_name} in release ${tag}.`);
|
core.debug(`Uploading ${file} to ${asset_name} in release ${tag}.`);
|
||||||
console.log(file_bytes);
|
console.log(file_bytes.toString());
|
||||||
yield octokit.repos.uploadReleaseAsset({
|
yield octokit.repos.uploadReleaseAsset({
|
||||||
url: release.data.upload_url,
|
url: release.data.upload_url,
|
||||||
name: asset_name,
|
name: asset_name,
|
||||||
file: file_bytes,
|
data: file_bytes,
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'binary/octet-stream',
|
'content-type': 'binary/octet-stream',
|
||||||
'content-length': file_size
|
'content-length': file_size
|
||||||
|
@ -80,11 +80,11 @@ async function upload_to_release(
|
|||||||
}
|
}
|
||||||
|
|
||||||
core.debug(`Uploading ${file} to ${asset_name} in release ${tag}.`)
|
core.debug(`Uploading ${file} to ${asset_name} in release ${tag}.`)
|
||||||
console.log(file_bytes)
|
console.log(file_bytes.toString())
|
||||||
await octokit.repos.uploadReleaseAsset({
|
await octokit.repos.uploadReleaseAsset({
|
||||||
url: release.data.upload_url,
|
url: release.data.upload_url,
|
||||||
name: asset_name,
|
name: asset_name,
|
||||||
file: file_bytes,
|
data: file_bytes,
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'binary/octet-stream',
|
'content-type': 'binary/octet-stream',
|
||||||
'content-length': file_size
|
'content-length': file_size
|
||||||
|
Loading…
Reference in New Issue
Block a user