Skip to content
Merged
Changes from 4 commits
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
11 changes: 10 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,15 @@ async function main() {
reportBody,
].join('\n')

const stepSummaryPath = env.load('GITHUB_STEP_SUMMARY', '')
if (stepSummaryPath) {
try {
appendFileSync(stepSummaryPath, overallReport + '\n')
} catch (error) {
console.error(`Failed to write GitHub step summary to ${stepSummaryPath}:`, error)
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
Loading