: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(ci): skip repo-specific maintenance jobs outside PostHog/posthog (#121306)
Georges-Antoine Assi1ede52816edd
diff --git a/.github/workflows/ci-backend-update-test-timing.yml b/.github/workflows/ci-backend-update-test-timing.ymlindex f3d68a9bf93d..ce779867f89c 100644--- a/.github/workflows/ci-backend-update-test-timing.yml+++ b/.github/workflows/ci-backend-update-test-timing.yml@@ -28,6 +28,7 @@ permissions:jobs:collect-and-merge:name: Collect timing data from CI artifacts+ if: github.repository == 'PostHog/posthog'runs-on: depot-ubuntu-24.04timeout-minutes: 15steps:diff --git a/.github/workflows/ci-hobby.yml b/.github/workflows/ci-hobby.ymlindex 80de44242438..11239b2a68e9 100644--- a/.github/workflows/ci-hobby.yml+++ b/.github/workflows/ci-hobby.yml@@ -48,7 +48,8 @@ jobs:# trunk-merge/** heads are skipped: merge-queue PRs are ephemeral and every# constituent PR already ran this in full.if: >-- github.event_name == 'pull_request'+ github.repository == 'PostHog/posthog'+ && github.event_name == 'pull_request'&& !startsWith(github.head_ref, 'trunk-merge/')&& (!contains(fromJSON('["labeled", "unlabeled"]'), github.event.action)|| (github.event.action == 'labeled'@@ -127,7 +128,7 @@ jobs:upgrade-render-test:name: Test hobby upgrade renderingneeds: changes- if: ${{ !cancelled() && (needs.changes.outputs.should_run == 'true' || github.event_name == 'push' || github.event_name == 'schedule') }}+ if: ${{ !cancelled() && github.repository == 'PostHog/posthog' && (needs.changes.outputs.should_run == 'true' || github.event_name == 'push' || github.event_name == 'schedule') }}runs-on: ubuntu-24.04timeout-minutes: 5steps:@@ -289,7 +290,7 @@ jobs:# A status function is required to read wait-for-docker-image's conclusion after it# failed or was skipped. !cancelled() rather than always() so a superseded PR run stops# this job promptly; the explicit conclusion/push/schedule checks preserve when it runs.- if: ${{ !cancelled() && ((needs.changes.outputs.should_run == 'true' && needs.wait-for-docker-image.outputs.conclusion == 'success') || github.event_name == 'push' || github.event_name == 'schedule') }}+ if: ${{ !cancelled() && github.repository == 'PostHog/posthog' && ((needs.changes.outputs.should_run == 'true' && needs.wait-for-docker-image.outputs.conclusion == 'success') || github.event_name == 'push' || github.event_name == 'schedule') }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:diff --git a/.github/workflows/ci-storybook-update-test-timing.yml b/.github/workflows/ci-storybook-update-test-timing.ymlindex d63b9667373f..5667672ba7aa 100644--- a/.github/workflows/ci-storybook-update-test-timing.yml+++ b/.github/workflows/ci-storybook-update-test-timing.yml@@ -24,6 +24,7 @@ permissions:jobs:collect-and-refresh:name: Refresh storybook timing manifest from CI artifacts+ if: github.repository == 'PostHog/posthog'runs-on: depot-ubuntu-24.04timeout-minutes: 15steps:diff --git a/.github/workflows/hogbox-preview-cleanup.yml b/.github/workflows/hogbox-preview-cleanup.ymlindex a6ec3397773f..c0b3977e8a5c 100644--- a/.github/workflows/hogbox-preview-cleanup.yml+++ b/.github/workflows/hogbox-preview-cleanup.yml@@ -33,6 +33,7 @@ env:jobs:cleanup-hogbox-preview:name: Reap stale hogbox previews+ if: github.repository == 'PostHog/posthog'runs-on: ubuntu-24.04timeout-minutes: 15steps:diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yamlindex af24f7451c80..399ac124f725 100644--- a/.github/workflows/stale.yaml+++ b/.github/workflows/stale.yaml@@ -17,6 +17,7 @@ concurrency:jobs:holiday:+ if: github.repository == 'PostHog/posthog'runs-on: ubuntu-24.04timeout-minutes: 5outputs: