Fix auto frontend build changes
@@ -87,8 +87,14 @@ endif
ui: gitdirty
cd wandb/board/ui && yarn build
+ifeq ($(strip $(shell git status --untracked-files=no --porcelain 2>/dev/null)),)
+ GIT_TREE_STATE=clean
+else
+ GIT_TREE_STATE=dirty
+endif
ifeq ($(GIT_TREE_STATE),dirty)
- git commit -am 'New frontend build'
+ git add .
+ git commit -m 'New frontend build'
else
@echo "No frontend changes to commit"
endif
