danilotpnta commited on
Commit
76ed99b
·
1 Parent(s): f981af8

update sync action

Browse files
.github/workflows/sync_to_huggingface_space.yml CHANGED
@@ -3,7 +3,6 @@ on:
3
  push:
4
  branches: [main]
5
 
6
- # to run this workflow manually from the Actions tab
7
  workflow_dispatch:
8
 
9
  jobs:
@@ -14,15 +13,11 @@ jobs:
14
  with:
15
  fetch-depth: 0
16
  lfs: true
17
- - name: Set up git user
18
- run: |
19
- git config --global user.email "your-email@example.com"
20
- git config --global user.name "Your Name"
21
- - name: Pull latest changes from Hugging Face
22
  env:
23
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
24
- run: git pull https://huggingface.co/spaces/danilotpnta/Youtube-Whisper main
25
  - name: Push to hub
26
  env:
27
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
28
- run: git push https://danilotpnta:$HF_TOKEN@huggingface.co/spaces/danilotpnta/Youtube-Whisper main
 
3
  push:
4
  branches: [main]
5
 
 
6
  workflow_dispatch:
7
 
8
  jobs:
 
13
  with:
14
  fetch-depth: 0
15
  lfs: true
16
+ - name: Pull latest changes from Hugging Face with rebase
 
 
 
 
17
  env:
18
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
19
+ run: git pull --rebase https://huggingface.co/spaces/danilotpnta/Youtube-Whisper main
20
  - name: Push to hub
21
  env:
22
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
23
+ run: git push https://danilotpnta:$HF_TOKEN@huggingface.co/spaces/danilotpnta/Youtube-Whisper main