nikhilkomakula commited on
Commit
9d194ad
·
1 Parent(s): eff3e93

Updated main.yml

Browse files
Files changed (1) hide show
  1. .github/workflows/main.yml +7 -5
.github/workflows/main.yml CHANGED
@@ -1,7 +1,8 @@
1
  name: Sync to Hugging Face hub
 
2
  on:
3
  push:
4
- branches: [main]
5
  workflow_dispatch:
6
 
7
  jobs:
@@ -12,15 +13,16 @@ jobs:
12
  uses: actions/checkout@v4
13
  with:
14
  fetch-depth: 0
15
-
16
  - name: Add remote
17
  env:
18
  HF: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
19
  run: |
20
- git remote add space https://huggingface.co/spaces/nikhilkomakula/llm-rag-op-chatbot || true
21
-
22
  - name: Push to hub
23
  env:
24
  HF: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
25
  run: |
26
- git push --force https://huggingface.co/spaces/nikhilkomakula/llm-rag-op-chatbot main || exit 0
 
 
1
  name: Sync to Hugging Face hub
2
+
3
  on:
4
  push:
5
+ branches: [ main ]
6
  workflow_dispatch:
7
 
8
  jobs:
 
13
  uses: actions/checkout@v4
14
  with:
15
  fetch-depth: 0
16
+
17
  - name: Add remote
18
  env:
19
  HF: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
20
  run: |
21
+ git remote add space https://huggingface.co/spaces/nikhilkomakula/llm-rag-op-chatbot || echo "Remote already exists"
22
+
23
  - name: Push to hub
24
  env:
25
  HF: ${{ secrets.HUGGINGFACEHUB_API_TOKEN }}
26
  run: |
27
+ git push --force https://huggingface.co/spaces/nikhilkomakula/llm-rag-op-chatbot main
28
+ exit 0