drbh commited on
Commit
a02962e
·
1 Parent(s): 0ceb0a8

fix: prefer https over ssh sync

Browse files
.github/workflows/hugging-face-hub-sync.yaml CHANGED
@@ -1,7 +1,7 @@
1
  name: Sync to Hugging Face hub
2
  on:
3
  push:
4
- branches: [ main ] # Change this to your default branch if different
5
 
6
  jobs:
7
  sync-to-hub:
@@ -9,7 +9,7 @@ jobs:
9
  steps:
10
  - uses: actions/checkout@v4
11
  with:
12
- fetch-depth: 0 # Important for complete history
13
  lfs: true
14
 
15
  - name: Push to hub
@@ -19,12 +19,11 @@ jobs:
19
  git config --global user.email "[email protected]"
20
  git config --global user.name "github-actions"
21
 
22
- # Configure Hugging Face repository
23
- git remote add hub git@hf.co:kernels-community/mrope_get_position_ids
24
 
25
- # Fetch from Hugging Face to ensure we have the latest state
26
  git fetch hub || true
27
 
28
- # Push to Hugging Face, preserving history
29
- # The '+' before the ref forces the update only if necessary while preserving history
30
  git push https://[email protected]/kernels-community/mrope_get_position_ids +main:main
 
1
  name: Sync to Hugging Face hub
2
  on:
3
  push:
4
+ branches: [ main ]
5
 
6
  jobs:
7
  sync-to-hub:
 
9
  steps:
10
  - uses: actions/checkout@v4
11
  with:
12
+ fetch-depth: 0
13
  lfs: true
14
 
15
  - name: Push to hub
 
19
  git config --global user.email "[email protected]"
20
  git config --global user.name "github-actions"
21
 
22
+ # Configure Hugging Face repository using HTTPS
23
+ git remote add hub https://huggingface.co/kernels-community/mrope_get_position_ids
24
 
25
+ # Fetch from Hugging Face
26
  git fetch hub || true
27
 
28
+ # Push to Hugging Face using HTTPS with token
 
29
  git push https://[email protected]/kernels-community/mrope_get_position_ids +main:main