Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(ci): only build rust smoke test images on PostHog/posthog (#120588)

Georges-Antoine Assi2ccdd925ec45
diff --git a/.github/workflows/rust-smoke-test-build.yml b/.github/workflows/rust-smoke-test-build.yml
index 4c18a0d2f49e..b2537eb04604 100644
--- a/.github/workflows/rust-smoke-test-build.yml
+++ b/.github/workflows/rust-smoke-test-build.yml
@@ -38,8 +38,8 @@ jobs:
runs-on: ubuntu-24.04
timeout-minutes: 5
if: |
- github.event_name == 'workflow_dispatch' ||
- (github.event.pull_request.head.repo.full_name == github.repository &&
+ (github.event_name == 'workflow_dispatch' && github.repository == 'PostHog/posthog') ||
+ (github.event.pull_request.head.repo.full_name == 'PostHog/posthog' &&
contains(toJson(github.event.pull_request.labels.*.name), 'smoke_test'))
permissions: {}
steps:
@@ -49,7 +49,7 @@ jobs:
name: resolve image filter
runs-on: ubuntu-24.04
timeout-minutes: 2
- if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository
+ if: (github.event_name == 'workflow_dispatch' && github.repository == 'PostHog/posthog') || github.event.pull_request.head.repo.full_name == 'PostHog/posthog'
permissions: {}
outputs:
filter: ${{ steps.parse.outputs.filter }}