Try to fix json output
This commit is contained in:
@@ -377,7 +377,7 @@ async function wait(seconds) {
|
|||||||
...github.context.repo,
|
...github.context.repo,
|
||||||
path:filename,
|
path:filename,
|
||||||
message:committer.message,
|
message:committer.message,
|
||||||
content:Buffer.from(rendered).toString("base64"),
|
content:Buffer.from(typeof rendered === "object" ? JSON.stringify(rendered) : `${rendered}`).toString("base64"),
|
||||||
branch:committer.pr ? committer.head : committer.branch,
|
branch:committer.pr ? committer.head : committer.branch,
|
||||||
...(committer.sha ? {sha:committer.sha} : {}),
|
...(committer.sha ? {sha:committer.sha} : {}),
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user