diff --git a/.github/workflows/bench-pr-comment.yml b/.github/workflows/bench-pr-comment.yml index 0f7d03524..706bd2742 100644 --- a/.github/workflows/bench-pr-comment.yml +++ b/.github/workflows/bench-pr-comment.yml @@ -11,6 +11,11 @@ concurrency: jobs: benchmark: name: Comparative PR benchmark comment + if: + github.event.issue.pull_request + && github.event.issue.state == 'open' + && (contains(github.event.comment.body, '!benchmark') || contains(github.event.comment.body, '!gpu-benchmark')) + && (github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER') uses: lurk-lab/ci-workflows/.github/workflows/bench-pr-comment.yml@main with: default-runner: "self-hosted,gpu-bench"