diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 1bee9e5c..2b2deb1b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -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: