Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
reichaves authored Sep 29, 2024
1 parent dae73c2 commit 27b4fa7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Sync to Hugging Face hub

on:
push:
branches: [main]

# to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
Expand All @@ -14,6 +13,17 @@ jobs:
with:
fetch-depth: 0
lfs: true

- name: Configure Git
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Pull from hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: git pull https://reichaves:[email protected]/spaces/reichaves/Chatbot-Gemma2-9b-It-all-MiniLM-L6-v2-Brazil-PDF main --allow-unrelated-histories

- name: Push to hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
Expand Down

0 comments on commit 27b4fa7

Please sign in to comment.