From ef182e4f9315ca9bd1007fcc216e0fcee292181d Mon Sep 17 00:00:00 2001 From: Maria Ines Parnisari Date: Tue, 28 Apr 2026 15:24:54 -0700 Subject: [PATCH] ci: fail if swagger not up to date --- .github/workflows/lint.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index c126f74..0dd6de8 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -29,3 +29,10 @@ jobs: with: token: "${{ secrets.BUF_REGISTRY_TOKEN }}" breaking_against: "https://github.com/authzed/api.git#branch=main" + - name: "Verify generated files are up-to-date" + run: | + buf generate + git diff --exit-code -- docs/ || { + echo "::error::Generated files are out of date. Run 'buf generate' locally and commit the result." + exit 1 + }