From 9a76753fd097192a115db69b6ef4811dc6d8f14e Mon Sep 17 00:00:00 2001 From: Rishab Nayak Date: Wed, 18 Oct 2023 08:02:19 -0400 Subject: [PATCH] only run benchmark workflow if running from upstream repo --- .github/workflows/benchmark.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 191b481a045d2..caf194fc9c1b8 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -18,7 +18,7 @@ jobs: environment: clickhouse-benchmarks # Benchmarks are expensive to run so we only run them (periodically) against master branch and for PRs labeled `performance` - if: ${{ github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'performance') }} + if: ${{ github.repository == 'PostHog/posthog' && (github.ref == 'refs/heads/master' || contains(github.event.pull_request.labels.*.name, 'performance')) }} env: DATABASE_URL: 'postgres://posthog:posthog@localhost:5432/posthog'