From 2bfeb4de1b7e66fdba4f32e58a8ad82480ccd25a Mon Sep 17 00:00:00 2001 From: Joshua Temple Date: Thu, 18 Jun 2026 15:55:41 -0400 Subject: [PATCH] ci: use cascade verify for the dogfood workflow drift check Signed-off-by: Joshua Temple --- .github/workflows/pr.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index a4ac5302..56ed76e6 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -99,17 +99,15 @@ jobs: - name: Build cascade CLI run: go build -o /tmp/cascade ./cmd/cascade - - name: Regenerate dogfood workflows - run: /tmp/cascade generate-workflow --config .github/manifest.yaml --force + - name: Check for workflow drift + run: /tmp/cascade verify --config .github/manifest.yaml - - name: Verify generated workflows match committed files + - name: Drift detected + if: failure() run: | - if ! git diff --exit-code -- .github/workflows/ .github/actions/; then - echo "::error::Committed dogfood workflows have drifted from generator output." - echo "Run 'cascade generate-workflow --config .github/manifest.yaml --force' and commit the result." - exit 1 - fi - echo "No drift: committed workflows match generator output." + echo "Workflows are out of sync with the manifest." + echo "Run: cascade generate-workflow --config .github/manifest.yaml --force" + echo "Then commit the regenerated workflows." pr-gate: name: PR Gate