From 28ab1e66f806801b0b007e20738b13b8540a44db Mon Sep 17 00:00:00 2001 From: Samuel Burnham <45365069+samuelburnham@users.noreply.github.com> Date: Thu, 29 Feb 2024 17:29:27 -0500 Subject: [PATCH] ci: Fix `bench-pr-comment.yml` (#354) --- .github/workflows/bench-pr-comment.yml | 5 +++++ 1 file changed, 5 insertions(+) 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"