HarshAg1702 commited on
Commit
412df76
·
1 Parent(s): be9a199
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. .github/workflows/ hf-space-sync.yml +16 -1
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
.github/workflows/ hf-space-sync.yml CHANGED
@@ -21,4 +21,19 @@ jobs:
21
  run: |
22
  git config --global user.email "github-actions[bot]@users.noreply.github.com"
23
  git config --global user.name "github-actions[bot]"
24
- git push https://Tru2025:${HF_TOKEN}@huggingface.co/spaces/Tru2025/Extractor_Final main
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  run: |
22
  git config --global user.email "github-actions[bot]@users.noreply.github.com"
23
  git config --global user.name "github-actions[bot]"
24
+
25
+ # Add the HF remote
26
+ git remote add hf https://Tru2025:${HF_TOKEN}@huggingface.co/spaces/Tru2025/Extractor_Final
27
+
28
+ # Fetch the latest changes from HF
29
+ git fetch hf
30
+
31
+ # Try to merge or rebase (choose one approach)
32
+ # Option 1: Merge approach (preserves history)
33
+ git merge hf/main --allow-unrelated-histories || git merge hf/main --strategy-option=ours
34
+
35
+ # Option 2: Force push (overwrites HF space - uncomment if you prefer this)
36
+ # git push hf main --force
37
+
38
+ # Push the merged changes
39
+ git push hf main