Spaces:
Sleeping
Sleeping
[fix]: upgrade code deployment
Browse files
.github/workflows/sync_ahf.yaml
CHANGED
|
@@ -40,10 +40,14 @@ jobs:
|
|
| 40 |
git add .
|
| 41 |
git commit -m "Clean binary files from history" || true
|
| 42 |
|
| 43 |
-
- name:
|
| 44 |
run: |
|
| 45 |
-
git
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
- name: Force push to Hugging Face Space
|
| 49 |
run: |
|
|
|
|
| 40 |
git add .
|
| 41 |
git commit -m "Clean binary files from history" || true
|
| 42 |
|
| 43 |
+
- name: Sync with origin (safe)
|
| 44 |
run: |
|
| 45 |
+
if git remote | grep origin; then
|
| 46 |
+
git fetch origin main || true
|
| 47 |
+
git rebase origin/main || true
|
| 48 |
+
else
|
| 49 |
+
echo "No origin remote found, skipping rebase."
|
| 50 |
+
fi
|
| 51 |
|
| 52 |
- name: Force push to Hugging Face Space
|
| 53 |
run: |
|