Vikramjeet Singh commited on
Commit
d8dcbe8
1 Parent(s): e5fe2f0

Update HuggingFace Hub Sync.yaml

Browse files
.github/workflows/HuggingFace Hub Sync.yaml CHANGED
@@ -9,8 +9,6 @@ on:
9
  jobs:
10
  sync-to-hub:
11
  runs-on: ubuntu-latest
12
- env:
13
- HF_TOKEN: ${{ secrets.HF_TOKEN }}
14
  steps:
15
  - uses: actions/checkout@v3
16
  with:
@@ -20,7 +18,13 @@ jobs:
20
  run: |
21
  git config user.name "Your Name"
22
  git config user.email "your-email@example.com"
 
 
23
  - name: Pull from remote
24
  run: git pull https://VikramSingh178:$HF_TOKEN@huggingface.co/spaces/VikramSingh178/picpilot-server main
 
 
25
  - name: Push to hub
 
 
26
  run: git push https://VikramSingh178:$HF_TOKEN@huggingface.co/spaces/VikramSingh178/picpilot-server main
 
9
  jobs:
10
  sync-to-hub:
11
  runs-on: ubuntu-latest
 
 
12
  steps:
13
  - uses: actions/checkout@v3
14
  with:
 
18
  run: |
19
  git config user.name "Your Name"
20
  git config user.email "your-email@example.com"
21
+ - name: Set pull strategy to rebase
22
+ run: git config pull.rebase true
23
  - name: Pull from remote
24
  run: git pull https://VikramSingh178:$HF_TOKEN@huggingface.co/spaces/VikramSingh178/picpilot-server main
25
+ env:
26
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
27
  - name: Push to hub
28
+ env:
29
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
30
  run: git push https://VikramSingh178:$HF_TOKEN@huggingface.co/spaces/VikramSingh178/picpilot-server main