Skip to content

Commit

Permalink
only run benchmark workflow if running from upstream repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabnayak committed Oct 18, 2023
1 parent cc88e36 commit 9a76753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 9a76753

Please sign in to comment.