From 86b50e91f77b9e0b951b4d7a02bf8c969caa9c15 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Mon, 9 May 2022 12:30:56 +0200 Subject: [PATCH] fix: correctly encode output as json --- .changes/fix-correct-json-formatting.md | 5 +++++ src/main.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/fix-correct-json-formatting.md diff --git a/.changes/fix-correct-json-formatting.md b/.changes/fix-correct-json-formatting.md new file mode 100644 index 0000000..8ef8ddd --- /dev/null +++ b/.changes/fix-correct-json-formatting.md @@ -0,0 +1,5 @@ +--- +"tauri-build": patch +--- + +Correctly encode the output as JSON \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 5c68725..79ed207 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,7 +13,7 @@ async function run(): Promise { debug: core.getBooleanInput('debug') }) - core.setOutput('artifacts', artifacts) + core.setOutput('artifacts', JSON.stringify(artifacts)) } catch (error) { if (error instanceof Error) core.setFailed(error.message) }