luanpoppe commited on
Commit
e9a035c
·
1 Parent(s): 447ae05

fix: adicionando mais etapas de debugging

Browse files
.github/workflows/sync-to-huggingface.yml CHANGED
@@ -23,15 +23,20 @@ jobs:
23
  chmod 600 ~/.ssh/custom_key
24
  ssh-keyscan huggingface.co >> ~/.ssh/known_hosts
25
 
26
- # Add or update remotes
27
- git remote add space [email protected]:spaces/luanpoppe/vella-backend.git || git remote set-url space [email protected]:spaces/luanpoppe/vella-backend.git
28
- git remote add tests [email protected]:spaces/luanpoppe/vella-backend-tests.git || git remote set-url tests [email protected]:spaces/luanpoppe/vella-backend-tests.git
29
 
30
- - name: Debug setup
31
- run: |
32
- echo "Remotes:"
 
 
 
 
 
 
33
  git remote -v
34
- ls -la ~/.ssh
35
 
36
  - name: Determine target remote
37
  id: determine_remote
 
23
  chmod 600 ~/.ssh/custom_key
24
  ssh-keyscan huggingface.co >> ~/.ssh/known_hosts
25
 
26
+ # Debug: List remotes before modification
27
+ echo "Remotes before update:"
28
+ git remote -v
29
 
30
+ # Add or update remotes with explicit error handling
31
+ git remote add space [email protected]:spaces/luanpoppe/vella-backend.git || true
32
+ git remote set-url space [email protected]:spaces/luanpoppe/vella-backend.git || true
33
+
34
+ git remote add tests [email protected]:spaces/luanpoppe/vella-backend-tests.git || true
35
+ git remote set-url tests [email protected]:spaces/luanpoppe/vella-backend-tests.git || true
36
+
37
+ # Debug: List remotes after modification
38
+ echo "Remotes after update:"
39
  git remote -v
 
40
 
41
  - name: Determine target remote
42
  id: determine_remote