vikenkd commited on
Commit
5d2cea6
·
1 Parent(s): 1f1300b

[fix]: upgrade code deployment

Browse files
Files changed (1) hide show
  1. .github/workflows/sync_ahf.yaml +7 -3
.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: Clean Git history (sync with origin)
44
  run: |
45
- git fetch origin main
46
- git rebase origin/main || true
 
 
 
 
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: |