reichaves commited on
Commit
27b4fa7
1 Parent(s): dae73c2

Update main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +12 -2
.github/workflows/main.yml CHANGED
@@ -1,9 +1,8 @@
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:
@@ -14,6 +13,17 @@ jobs:
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
  workflow_dispatch:
7
 
8
  jobs:
 
13
  with:
14
  fetch-depth: 0
15
  lfs: true
16
+
17
+ - name: Configure Git
18
+ run: |
19
+ git config user.name github-actions
20
+ git config user.email [email protected]
21
+
22
+ - name: Pull from hub
23
+ env:
24
+ HF_TOKEN: ${{ secrets.HF_TOKEN }}
25
+ run: git pull https://reichaves:[email protected]/spaces/reichaves/Chatbot-Gemma2-9b-It-all-MiniLM-L6-v2-Brazil-PDF main --allow-unrelated-histories
26
+
27
  - name: Push to hub
28
  env:
29
  HF_TOKEN: ${{ secrets.HF_TOKEN }}