Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ci/github-actions/report-benchmark-result-pr.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getOctokit, context } from '@actions/github'
import console from 'console'
import { readFileSync } from 'fs'
import { appendFileSync, readFileSync } from 'fs'
import process from 'process'
import { Item as RegressionItem, collectRegressions } from './benchmark/collect-regressions'
import { SelfBenchmarkCategory, parseSelfBenchmarkCategory } from './benchmark/matrix'
Expand Down Expand Up @@ -69,6 +69,11 @@ async function main() {
reportBody,
].join('\n')

const stepSummaryPath = env.load('GITHUB_STEP_SUMMARY', '')
if (stepSummaryPath) {
appendFileSync(stepSummaryPath, overallReport + '\n')
Comment thread
KSXGitHub marked this conversation as resolved.
Outdated
}
Comment thread
KSXGitHub marked this conversation as resolved.

const auth = env.load('GITHUB_TOKEN')
const github = getOctokit(auth).rest

Expand Down