Merge pull request #234 from napi-rs/fix-benchmark

ci: benchmark result upload condition
This commit is contained in:
LongYinan 2020-10-14 22:38:34 +08:00 committed by GitHub
commit 9c3465543f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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