Skip to content

Commit

Permalink
Merge pull request #2 from ritchxu/ritchxu/pr-feedbacks
Browse files Browse the repository at this point in the history
Skip markdown file
  • Loading branch information
ritchxu authored Apr 6, 2024
2 parents 0b7d35f + c1768c8 commit 3816496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions dist/index.js

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

4 changes: 1 addition & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@ class TestReporter {

core.info('Summary content:')
core.info(summary)
await fs.promises.writeFile(this.path.replace('*.trx', 'test-summary.md'), summary)
core.info('File content:')
core.info(fs.readFileSync(this.path.replace('*.trx', 'test-summary.md'), 'utf8'))
await core.summary.addRaw(summary).write()
} else {
core.info(`Creating check run ${name}`)
const createResp = await this.octokit.rest.checks.create({
Expand Down

0 comments on commit 3816496

Please sign in to comment.