Skip to content

Commit ef182e4

Browse files
committed
ci: fail if swagger not up to date
1 parent d661b49 commit ef182e4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/lint.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,10 @@ jobs:
2929
with:
3030
token: "${{ secrets.BUF_REGISTRY_TOKEN }}"
3131
breaking_against: "https://github.com/authzed/api.git#branch=main"
32+
- name: "Verify generated files are up-to-date"
33+
run: |
34+
buf generate
35+
git diff --exit-code -- docs/ || {
36+
echo "::error::Generated files are out of date. Run 'buf generate' locally and commit the result."
37+
exit 1
38+
}

0 commit comments

Comments
 (0)