File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,7 @@ jobs:
246
246
} >> "$GITHUB_ENV"
247
247
248
248
- name : save benchmark results as a comment
249
- if : github.event_name == 'pull_request'
249
+ if : github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
250
250
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
251
251
with :
252
252
script : |
@@ -260,6 +260,17 @@ jobs:
260
260
body,
261
261
});
262
262
263
+ - name : save benchmark results as a step summary
264
+ if : github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork
265
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
266
+ with :
267
+ script : |
268
+ const fs = require('fs');
269
+ const metricsOutput = process.env.BENCHMARK_METRICS_OUTPUT || '## Standard Benchmark Skipped or Failed';
270
+ const bulkOutput = process.env.BENCHMARK_BULK_OUTPUT || '## Bulk Benchmark Skipped or Failed';
271
+ const summaryContent = `${metricsOutput}\n\n${bulkOutput}`;
272
+ fs.appendFileSync(process.env.GITHUB_STEP_SUMMARY, summaryContent + '\n');
273
+
263
274
image :
264
275
name : image build
265
276
runs-on : ubuntu-22.04
You can’t perform that action at this time.
0 commit comments