: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
fix(ci): skip hogql-parser pin guard on workflow-only edits (#60978)
Raúl Negrón-Otero602ce4350f26
diff --git a/.github/workflows/build-hogql-parser.yml b/.github/workflows/build-hogql-parser.ymlindex 399c43737db1..dfa35bbf0cde 100644--- a/.github/workflows/build-hogql-parser.yml+++ b/.github/workflows/build-hogql-parser.yml@@ -21,6 +21,7 @@ jobs:timeout-minutes: 5outputs:parser-release-needed: ${{ steps.version.outputs.parser-release-needed }}+ version-release-needed: ${{ steps.version.outputs.version-release-needed }}steps:- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:@@ -72,6 +73,10 @@ jobs:parser_release_needed='true'fifi+ # A genuinely new version (the 404/unknown cases above) — not a workflow-only+ # exercise — is what must move the pyproject/uv.lock pin. Emit it now, before+ # the workflow-only override below raises parser-release-needed on its own.+ echo "version-release-needed=$parser_release_needed" >> $GITHUB_OUTPUT# Exercise the release pipeline on workflow-only edits; skip-existing makes publish a no-op.if [[ "$WORKFLOW_CHANGED" == 'true' ]]; thenparser_release_needed='true'@@ -137,7 +142,7 @@ jobs:publish:name: Publish on PyPI- needs: build-wheels+ needs: [check-version, build-wheels]environment: pypi-hogql-parserpermissions:id-token: write@@ -245,6 +250,10 @@ jobs:GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}- name: Fail if pin update produced no commit+ # Only a real version release must move the pin. Workflow-only edits+ # exercise the pipeline as a skip-existing no-op and legitimately leave+ # the pin untouched, so the guard must not fire for them.+ if: needs.check-version.outputs.version-release-needed == 'true'shell: bashenv:CHANGED: ${{ steps.check-pin.outputs.changed }}