From 15ea112f839a6ae6a989bb449a1370bd272d2783 Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Tue, 19 Sep 2023 12:44:16 +0300 Subject: [PATCH] add new line at the end of the file Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com> --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 1a3e425..f2195bc 100644 --- a/index.js +++ b/index.js @@ -48,11 +48,10 @@ async function run() { console.log(`Old version: ${version}. New version: ${newVersion}`) - // fs.writeFileSync(file, JSON.stringify(file, null, 2)); const filePathRelatedToRoot = getProjectInfoFilePath(filePathInput, true); await commitChanges(file, filePathRelatedToRoot); - const payload = JSON.stringify(github.context.payload, undefined, 2) + const payload = JSON.stringify(github.context.payload + '\n', undefined, 2) // console.log(`The event payload: ${payload}`); } catch (error) {