Try to fix json output

This commit is contained in:
lowlighter
2021-06-06 00:17:15 +02:00
parent b24c26fdfa
commit 1a52951157

View File

@@ -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} : {}),
}) })