diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d2c91933..60ef30a2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -111,7 +111,7 @@ jobs: secrets: inherit benchmark: - if: ${{github.event_name}} == 'push' + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} name: Benchmark needs: generate_clients uses: ./.github/workflows/benchmark.yml