Spaces:
Sleeping
Sleeping
dani-ange
commited on
Update train-deploy.yaml
Browse files
.github/workflows/train-deploy.yaml
CHANGED
@@ -44,7 +44,10 @@ jobs:
|
|
44 |
|
45 |
# Ensure Git LFS tracks the right files
|
46 |
git lfs track "*.joblib"
|
47 |
-
|
48 |
git add .
|
49 |
-
git
|
50 |
-
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
# Ensure Git LFS tracks the right files
|
46 |
git lfs track "*.joblib"
|
|
|
47 |
git add .
|
48 |
+
if ! git diff --cached --exit-code; then
|
49 |
+
git commit -m "Updated model"
|
50 |
+
git push https://danielle2003:[email protected]/spaces/danielle2003/diabeties-ml main
|
51 |
+
else
|
52 |
+
echo "No changes to commit."
|
53 |
+
fi
|