fix: correctly encode output as json

This commit is contained in:
Jonas Kruckenberg 2022-05-09 12:30:56 +02:00
parent 470baaf479
commit 86b50e91f7
No known key found for this signature in database
GPG Key ID: 21AD3B3C266BDE3D
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Correctly encode the output as JSON

View File

@ -13,7 +13,7 @@ async function run(): Promise<void> {
debug: core.getBooleanInput('debug') debug: core.getBooleanInput('debug')
}) })
core.setOutput('artifacts', artifacts) core.setOutput('artifacts', JSON.stringify(artifacts))
} catch (error) { } catch (error) {
if (error instanceof Error) core.setFailed(error.message) if (error instanceof Error) core.setFailed(error.message)
} }