: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
feat(ci): Skip Storybook CI when bot updates only snapshots.yml (#57799)
Julian Bezc26b09bfed1d
diff --git a/.github/workflows/ci-storybook.yml b/.github/workflows/ci-storybook.ymlindex 7bf4fc77b943..bbc7f56bf1c8 100644--- a/.github/workflows/ci-storybook.yml+++ b/.github/workflows/ci-storybook.yml@@ -27,12 +27,20 @@ jobs:# every file NOT at that path — effectively matching ALL changes# including backend files. Instead we use two positive filters and# compare counts to exclude generated-only PRs.+ #+ # Additionally skip when a bot commits only frontend/snapshots.yml on+ # a PR — that file is updated automatically after human review and CI+ # approval, so re-running the full storybook suite is pure waste.frontend: >-${{github.event_name == 'push'|| (steps.filter.outputs.frontend == 'true'&& fromJSON(steps.filter.outputs.frontend_count || '0')- > fromJSON(steps.filter.outputs.frontend_generated_count || '0'))+ > fromJSON(steps.filter.outputs.frontend_generated_count || '0')+ && !(github.event_name == 'pull_request'+ && (contains(github.actor, '[bot]') || github.actor == 'posthog-bot')+ && fromJSON(steps.filter.outputs.snapshots_count || '0')+ == fromJSON(steps.filter.outputs.frontend_count || '0')))}}matrix: ${{ steps.matrix.outputs.matrix }}steps:@@ -61,6 +69,8 @@ jobs:frontend_generated:- 'frontend/src/generated/**'- 'products/**/frontend/generated/**'+ snapshots:+ - 'frontend/snapshots.yml'# Build the visual-regression matrix.# On PRs, only run chromium shards — no story currently opts into webkit snapshots