Skip to content

Commit

Permalink
Fix output formatting (#2)
Browse files Browse the repository at this point in the history
Adds an additional newline before the ##stderr section
  • Loading branch information
Firehed authored Aug 5, 2021
1 parent 961cc5a commit 355d60e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ async function updateCheck(checkId: number, result: ExecResult): Promise<void> {
: 'Succeeded'

const summary = ''// Reserve for future
const text = "# Command output\n\n"
+ "## stdout\n\n"
+ '```' + `\n${result.stdout}\n` + '```'
+ "## stderr\n\n"
+ '```' + `\n${result.stderr}\n` + '```'
const text = "# Command output"
+ "\n\n## stdout"
+ "\n```" + `\n${result.stdout}\n` + '```'
+ "\n\n## stderr"
+ "\n```" + `\n${result.stderr}\n` + '```'

const updateParams = {
owner: github.context.repo.owner,
Expand Down

0 comments on commit 355d60e

Please sign in to comment.