diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 162d76d921b..84c2316f7bb 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -19,6 +19,7 @@ concurrency: jobs: benchmark: + if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'performance') runs-on: ubuntu-latest steps: diff --git a/.github/workflows/post-benchmark.yml b/.github/workflows/post-benchmark.yml index 538795f82bc..2350a74a843 100644 --- a/.github/workflows/post-benchmark.yml +++ b/.github/workflows/post-benchmark.yml @@ -48,3 +48,4 @@ jobs: # Enable job summary summary-always: true comment-always: true + ref: ${{ github.event.workflow_run.head_sha }}