diff --git a/.github/workflows/live-drift.yml b/.github/workflows/live-drift.yml index b696115962..d4ea59ae08 100644 --- a/.github/workflows/live-drift.yml +++ b/.github/workflows/live-drift.yml @@ -74,26 +74,29 @@ jobs: set -o pipefail npm run check:drift 2>&1 | tee drift-output.txt - - name: Capture drift findings + - name: Align migration history for Supabase Preview + run: | + set -o pipefail + npm run check:migration-history 2>&1 | tee migration-history-output.txt + + - name: Capture drift and migration-history findings id: findings if: always() run: | - # Line shapes come from scripts/check-drift.ts: the manifest/compared - # context lines, the "! [category] kind key" unexpected-drift findings, - # and the "? [category]" stale allowlist entries. Absent when the run - # died before the comparison (missing secret, identity guard); the - # routing job says so rather than implying a clean result. + # Keep a migration-history failure visible rather than publishing a + # successful drift result as the explanation for the failed job. { echo "findings<> "$GITHUB_OUTPUT" - - name: Align migration history for Supabase Preview - run: npm run check:migration-history - # Split out so issues: write is scoped to a job that never installs or executes # repository code — the drift job above keeps contents: read only. drift-routing: