We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1a1997 commit 4e1bf9eCopy full SHA for 4e1bf9e
1 file changed
ci/github-actions/report-benchmark-result-pr.ts
@@ -1,6 +1,6 @@
1
import { getOctokit, context } from '@actions/github'
2
import console from 'console'
3
-import { readFileSync } from 'fs'
+import { appendFileSync, readFileSync } from 'fs'
4
import process from 'process'
5
import { Item as RegressionItem, collectRegressions } from './benchmark/collect-regressions'
6
import { SelfBenchmarkCategory, parseSelfBenchmarkCategory } from './benchmark/matrix'
@@ -69,6 +69,11 @@ async function main() {
69
reportBody,
70
].join('\n')
71
72
+ const stepSummaryPath = env.load('GITHUB_STEP_SUMMARY', '')
73
+ if (stepSummaryPath) {
74
+ appendFileSync(stepSummaryPath, overallReport + '\n')
75
+ }
76
+
77
const auth = env.load('GITHUB_TOKEN')
78
const github = getOctokit(auth).rest
79
0 commit comments