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 run the sandbox agent bump on PostHog/posthog (#118026)

Georges-Antoine Assi49e46a48477a
diff --git a/.github/workflows/update-sandbox-agent-version.yml b/.github/workflows/update-sandbox-agent-version.yml
index 03aea97c9ead..bbca13922495 100644
--- a/.github/workflows/update-sandbox-agent-version.yml
+++ b/.github/workflows/update-sandbox-agent-version.yml
@@ -23,6 +23,7 @@ permissions:
jobs:
update-sandbox-agent-version:
+ if: github.repository == 'PostHog/posthog'
runs-on: ubuntu-24.04
timeout-minutes: 125
concurrency:
@@ -587,7 +588,7 @@ jobs:
verify_rollout:
needs: update-sandbox-agent-version
name: Verify the bump reaches the master image
- if: ${{ !cancelled() && github.repository_owner == 'PostHog' && vars.CD_DEPLOY_ENABLED == 'true' && needs.update-sandbox-agent-version.outputs.action == 'bump' && needs.update-sandbox-agent-version.outputs.enqueued == 'true' }}
+ if: ${{ !cancelled() && github.repository == 'PostHog/posthog' && needs.update-sandbox-agent-version.outputs.action == 'bump' && needs.update-sandbox-agent-version.outputs.enqueued == 'true' }}
runs-on: ubuntu-24.04
timeout-minutes: 160
concurrency:
@@ -684,7 +685,7 @@ jobs:
- name: Rebuild the master image
id: repair
- if: steps.merge.outputs.state == 'merged' && steps.master.outputs.live != 'true'
+ if: steps.merge.outputs.state == 'merged' && steps.master.outputs.live != 'true' && vars.CD_DEPLOY_ENABLED == 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |