From 9f8fc4fd81385be49a6e2298c9d7477e7285f2d2 Mon Sep 17 00:00:00 2001 From: Thomas Gorham Date: Fri, 2 Feb 2024 13:06:29 -0800 Subject: [PATCH] dont reformat json --- dist/post_run/index.js | 4 ++-- dist/run/index.js | 4 ++-- src/run.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/post_run/index.js b/dist/post_run/index.js index 973c3d3..b763eef 100644 --- a/dist/post_run/index.js +++ b/dist/post_run/index.js @@ -90904,8 +90904,8 @@ const printOutputAndForwardJSON = (s) => { core.info(line); } try { - const obj = JSON.parse(line); - core.setOutput("JSON", JSON.stringify(obj, null, 2)); + JSON.parse(line); + core.setOutput("JSON", line); } catch (err) { core.info(line); diff --git a/dist/run/index.js b/dist/run/index.js index 516bf7d..79e746a 100644 --- a/dist/run/index.js +++ b/dist/run/index.js @@ -90904,8 +90904,8 @@ const printOutputAndForwardJSON = (s) => { core.info(line); } try { - const obj = JSON.parse(line); - core.setOutput("JSON", JSON.stringify(obj, null, 2)); + JSON.parse(line); + core.setOutput("JSON", line); } catch (err) { core.info(line); diff --git a/src/run.ts b/src/run.ts index 6ed1728..ae8514e 100644 --- a/src/run.ts +++ b/src/run.ts @@ -111,8 +111,8 @@ const printOutputAndForwardJSON = (s: string): void => { } try { - const obj = JSON.parse(line) - core.setOutput("JSON", JSON.stringify(obj, null, 2)) + JSON.parse(line) + core.setOutput("JSON", line) } catch (err) { core.info(line) }