From 9abe67e516e9ea884b9bae5657ff8cd843259f9c Mon Sep 17 00:00:00 2001 From: Jonathan Clem Date: Wed, 8 Jan 2020 14:40:07 -0500 Subject: [PATCH] Encode result into output --- src/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.js b/src/main.js index dc8d021..d1c8ec1 100644 --- a/src/main.js +++ b/src/main.js @@ -26,16 +26,16 @@ async function main() { switch (encoding) { case 'json': - result = JSON.stringify(result) + output = JSON.stringify(result) break case 'string': - result = String(result) + output = String(result) break default: throw new Error('"result-encoding" must be either "string" or "json"') } - core.setOutput('result', result) + core.setOutput('result', output) } function handleError(err) {