Skip to content

Commit 0c62370

Browse files
Split action benchmark comparison and push to gh-pages (#4130)
1 parent b1433fd commit 0c62370

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/c-chain-reexecution-benchmark.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: C-Chain Re-Execution Benchmark
22

33
on:
4+
pull_request:
45
workflow_dispatch:
56
inputs:
67
start-block:
@@ -60,7 +61,7 @@ jobs:
6061
with:
6162
path: ./cache
6263
key: ${{ runner.os }}-reexecute-cchain-range-benchmark.json
63-
- name: Compare Benchmark Results
64+
- name: Compare Benchmark Result
6465
uses: benchmark-action/github-action-benchmark@v1
6566
with:
6667
tool: 'go'
@@ -73,4 +74,10 @@ jobs:
7374
auto-push: false
7475
- name: Push Benchmark Result
7576
if: github.event_name == 'schedule'
76-
run: git push origin gh-pages
77+
uses: benchmark-action/github-action-benchmark@v1
78+
with:
79+
tool: 'go'
80+
output-file-path: ${{ github.workspace }}/reexecute-cchain-range-benchmark-res.txt
81+
external-data-json-path: ./cache/${{ runner.os }}-reexecute-cchain-range-benchmark.json
82+
github-token: ${{ secrets.GITHUB_TOKEN }}
83+
auto-push: true

0 commit comments

Comments
 (0)