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): clear the actionlint inbox and make it a blocking check (#62207)

Raúl Negrón-Oteroaac8b1f0eb82
diff --git a/.github/workflows/ci-actionlint.yml b/.github/workflows/ci-actionlint.yml
index 2cd4185056f5..c4355c1a4e4b 100644
--- a/.github/workflows/ci-actionlint.yml
+++ b/.github/workflows/ci-actionlint.yml
@@ -22,7 +22,6 @@ jobs:
actionlint:
runs-on: ubuntu-latest
timeout-minutes: 5
- continue-on-error: true
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
@@ -38,16 +37,19 @@ jobs:
./.bin/actionlint -version
- name: Run actionlint
- # actionlint exits non-zero when findings exist; capture JSON and keep the step green
- # so the summarize step still runs. SHELLCHECK_OPTS scopes shellcheck integration to
- # actual errors — info/warning/style findings on workflow run-blocks are too noisy.
+ # actionlint exits 1 when findings exist, which fails this job — that is the gate.
+ # The JSON output is written before the non-zero exit, so the always()-guarded
+ # summary/upload steps below still run. SHELLCHECK_OPTS scopes the shellcheck
+ # integration to actual errors — info/warning/style findings on workflow run-blocks
+ # are too noisy.
env:
SHELLCHECK_OPTS: --severity=error
run: |
set -euo pipefail
- ./.bin/actionlint -format '{{json .}}' > actionlint.json || true
+ ./.bin/actionlint -format '{{json .}}' > actionlint.json
- name: Summarize findings
+ if: always()
run: |
set -euo pipefail
{
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index 048b6ee2fd05..5fb79d9f69e0 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -78,7 +78,7 @@ jobs:
backend_files: ${{ steps.filter.outputs.backend_files }}
migrations: ${{ steps.filter.outputs.migrations || 'true' }}
migrations_files: ${{ steps.filter.outputs.migrations_files }}
- persons-SQL: ${{ steps.filter.outputs['persons-SQL'] || 'true' }}
+ persons_sql: ${{ steps.filter.outputs.persons_sql || 'true' }}
tasks_temporal: ${{ steps.filter.outputs.tasks_temporal || 'true' }}
openapi_types: ${{ steps.filter.outputs.openapi_types || 'true' }}
legacy: ${{ steps.filter.outputs.legacy || 'true' }}
@@ -226,7 +226,7 @@ jobs:
- 'posthog/migrations/*.py'
- 'products/*/backend/migrations/*.py'
- 'products/*/migrations/*.py' # Legacy structure
- persons-SQL:
+ persons_sql:
- 'rust/persons_migrations/*.sql'
- 'rust/bin/migrate-persons'
timing_scripts:
@@ -757,7 +757,7 @@ jobs:
# in check-openapi-types below.
check-migrations:
needs: [changes]
- if: needs.changes.outputs.backend == 'true' || needs.changes.outputs.migrations == 'true' || needs.changes.outputs['persons-SQL'] == 'true'
+ if: needs.changes.outputs.backend == 'true' || needs.changes.outputs.migrations == 'true' || needs.changes.outputs.persons_sql == 'true'
timeout-minutes: 20
# The "Publish Migration risk check" step posts the check via the
# posthog-tests app token, which carries its own checks:write
diff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.yml
index 67ec314b46e1..e4212f814cb2 100644
--- a/.github/workflows/ci-rust.yml
+++ b/.github/workflows/ci-rust.yml
@@ -260,7 +260,7 @@ jobs:
with:
shared-key: 'v2-rust-ci'
workspaces: rust
- save-if: ${{ github.ref == 'refs/heads/master' && !matrix.is_shadow }}
+ save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Run cargo build
env:
@@ -457,7 +457,7 @@ jobs:
with:
shared-key: 'v2-rust-ci'
workspaces: rust
- save-if: ${{ github.ref == 'refs/heads/master' && !matrix.is_shadow }}
+ save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Check format
run: cargo fmt -- --check