fix if for benchmark
This commit is contained in:
parent
b35b88236d
commit
4dce591f8b
1 changed files with 7 additions and 5 deletions
12
.github/workflows/benchmark.yml
vendored
12
.github/workflows/benchmark.yml
vendored
|
|
@ -8,11 +8,13 @@ on:
|
|||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
# if: >-
|
||||
# github.event.issue.pull_request != '' &&
|
||||
# (
|
||||
# contains(github.event.comment.body, '/benchmark')
|
||||
# )
|
||||
if: >-
|
||||
(github.event_name == 'push' && github.ref == 'refs/heads/perf-test') ||
|
||||
(
|
||||
github.event_name == 'issue_comment' &&
|
||||
github.event.issue.pull_request != '' &&
|
||||
contains(github.event.comment.body, '/benchmark')
|
||||
)
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue