From 1a5295115767cd5c7e15b6546399ff9fef377ba6 Mon Sep 17 00:00:00 2001 From: lowlighter <22963968+lowlighter@users.noreply.github.com> Date: Sun, 6 Jun 2021 00:17:15 +0200 Subject: [PATCH] Try to fix json output --- source/app/action/index.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/action/index.mjs b/source/app/action/index.mjs index b283e863..4d7dd287 100644 --- a/source/app/action/index.mjs +++ b/source/app/action/index.mjs @@ -377,7 +377,7 @@ async function wait(seconds) { ...github.context.repo, path:filename, 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, ...(committer.sha ? {sha:committer.sha} : {}), })