Skip to content

Commit

Permalink
fix: stringify objects only
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Feb 3, 2022
1 parent 4fc6773 commit 9139684
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -45,7 +45,7 @@ async function main() {
core.setOutput("headers", JSON.stringify(headers, null, 2));
core.setOutput(
"data",
typeof data === "string" ? data : JSON.stringify(data, null, 2)
typeof data === "object" ? JSON.stringify(data, null, 2) : data
);
} catch (error) {
if (error.status) {
Expand Down

0 comments on commit 9139684

Please sign in to comment.