Kunal Kurve commited on
Commit
b075ef0
·
1 Parent(s): d71a127

Update main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +16 -1
.github/workflows/main.yml CHANGED
@@ -1,19 +1,34 @@
1
  name: Sync to Hugging Face hub
 
2
  on:
3
  push:
4
  branches: [main]
5
 
6
- # to run this workflow manually from the Actions tab
7
  workflow_dispatch:
8
 
9
  jobs:
10
  sync-to-hub:
11
  runs-on: ubuntu-latest
 
12
  steps:
13
  - uses: actions/checkout@v3
14
  with:
15
  fetch-depth: 0
16
  lfs: true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  - name: Push to hub
18
  env:
19
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
 
1
  name: Sync to Hugging Face hub
2
+
3
  on:
4
  push:
5
  branches: [main]
6
 
 
7
  workflow_dispatch:
8
 
9
  jobs:
10
  sync-to-hub:
11
  runs-on: ubuntu-latest
12
+
13
  steps:
14
  - uses: actions/checkout@v3
15
  with:
16
  fetch-depth: 0
17
  lfs: true
18
+
19
+ - name: Set up Git
20
+ run: |
21
+ git config --global user.email "[email protected]"
22
+ git config --global user.name "GitHub Actions"
23
+
24
+ - name: Pull from Hugging Face Hub
25
+ env:
26
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
27
+ run: |
28
+ git remote add hf https://kunalkurve:[email protected]/spaces/kunalkurve/Video_Content_Summarizer
29
+ git fetch hf
30
+ git rebase hf/main
31
+
32
  - name: Push to hub
33
  env:
34
  HF_TOKEN: ${{ secrets.HF_TOKEN }}