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

fix: new fix

Browse files
.github/workflows/sync-to-huggingface.yml CHANGED
@@ -17,20 +17,20 @@ jobs:
17
 
18
  - name: Set up SSH
19
  run: |
 
20
  mkdir -p ~/.ssh
21
  echo "${{ secrets.HF_SSH_PRIVATE_KEY }}" > ~/.ssh/custom_key
22
  chmod 600 ~/.ssh/custom_key
23
  ssh-keyscan huggingface.co >> ~/.ssh/known_hosts
24
 
25
- # Update remotes to use SSH
26
- git remote set-url space [email protected]:spaces/luanpoppe/vella-backend.git
27
- git remote set-url tests [email protected]:spaces/luanpoppe/vella-backend-tests.git
28
 
29
  - name: Debug setup
30
  run: |
31
- echo "Private key (first 50 chars):"
32
- echo "${{ secrets.HF_SSH_PRIVATE_KEY }}" | head -c 50
33
- echo ""
34
  ls -la ~/.ssh
35
 
36
  - name: Determine target remote
 
17
 
18
  - name: Set up SSH
19
  run: |
20
+ # Create .ssh directory and configure key
21
  mkdir -p ~/.ssh
22
  echo "${{ secrets.HF_SSH_PRIVATE_KEY }}" > ~/.ssh/custom_key
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