ci: benchmark result upload condition
This commit is contained in:
parent
03dff2575c
commit
70b2113985
1 changed files with 12 additions and 1 deletions
13
.github/workflows/bench.yaml
vendored
13
.github/workflows/bench.yaml
vendored
|
@ -1,6 +1,9 @@
|
|||
name: Benchmark
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
@ -62,12 +65,20 @@ jobs:
|
|||
|
||||
- name: Store benchmark result
|
||||
uses: rhysd/github-action-benchmark@v1
|
||||
if: github.ref == 'refs/heads/master'
|
||||
with:
|
||||
tool: 'benchmarkjs'
|
||||
output-file-path: bench.txt
|
||||
comment-on-alert: true
|
||||
github-token: ${{ secrets.GH_TOKEN }}
|
||||
auto-push: true
|
||||
|
||||
- name: Store benchmark result
|
||||
uses: rhysd/github-action-benchmark@v1
|
||||
if: github.ref != 'refs/heads/master'
|
||||
with:
|
||||
tool: 'benchmarkjs'
|
||||
output-file-path: bench.txt
|
||||
github-token: ${{ secrets.GH_TOKEN }}
|
||||
comment-always: true
|
||||
|
||||
- name: Clear the cargo caches
|
||||
|
|
Loading…
Reference in a new issue