Skip to content

Commit fb20eaa

Browse files
committed
comment json
1 parent d94cf2e commit fb20eaa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ const octokit = new Octokit();
1919
const [owner, repo] = process.env.GITHUB_REPOSITORY?.split("/")!;
2020
const pull_request_number = parseInt(process.env.GITHUB_REF?.split("/")[2]!);
2121

22+
const body = JSON.stringify(outputs);
23+
2224
octokit.rest.issues.createComment({
2325
owner,
2426
repo,
2527
issue_number: pull_request_number,
26-
body: `compilation output is:\n\n\`\`\`\n${outputs}\n\`\`\``,
28+
body: `compilation output is: \n\n\`\`\`json\n${body}\n\`\`\``,
2729
});

0 commit comments

Comments
 (0)