Skip to content

Commit

Permalink
fix: only run benchmark workflow if running from upstream repo (#18058)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabnayak authored Nov 13, 2023
1 parent 9ff2b3e commit f4e4d4c
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 f4e4d4c

Please sign in to comment.