Skip to content

Commit

Permalink
fix(make): make sure github action can check schemas change
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterYan committed Oct 15, 2024
1 parent 78ee833 commit 4997e48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ openapischema: controller-gen
controller-gen crd +output:dir=./config/crds paths=./pkg/apis/troubleshoot/v1beta2

check-schemas: generate schemas
@if [ -n "$(shell git status --short)" ]; then \
cp -r ./../../../github.com/replicatedhq/troubleshoot/pkg/client/troubleshootclientset ./pkg/client/
@if [ -n "$$(git status --short)" ]; then \
echo -e "\033[31mThe git repo is dirty :( Ensure all generated files are committed e.g CRD schema files\033[0;m"; \
git status --short; \
exit 1; \
Expand Down

0 comments on commit 4997e48

Please sign in to comment.