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): sparse-checkout the hogbox preview teardown (#97717)

posthog[bot]6cb03dc38551
diff --git a/.github/workflows/pr-closed.yml b/.github/workflows/pr-closed.yml
index 7976aeab5457..2b600b2dda3d 100644
--- a/.github/workflows/pr-closed.yml
+++ b/.github/workflows/pr-closed.yml
@@ -68,10 +68,18 @@ jobs:
# merge ref, which would execute PR-modified tools/hogbox-preview with
# the hogland token below. Cleanup only needs the SDK + a destroy call,
# so master's copy is correct and removes that exec vector.
+ #
+ # The teardown imports only tools/hogbox-preview and the external
+ # posthog-hogland SDK, so a sparse blobless checkout of that one
+ # directory replaces a full clone of the monorepo.
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: steps.gate.outputs.had_preview == 'true'
with:
ref: ${{ github.event.repository.default_branch }}
+ sparse-checkout: |
+ tools/hogbox-preview/
+ sparse-checkout-cone-mode: false
+ filter: blob:none
- name: Connect to Tailscale (tag:hogland-ci)
if: steps.gate.outputs.had_preview == 'true'
uses: tailscale/github-action@306e68a486fd2350f2bfc3b19fcd143891a4a2d8 # v4.1.2