devportal2 / .github /workflows /hf-sync.yml
A K BORANA
Fix fetch depth in hf-sync workflow
6d12197 unverified
Raw
History Blame Contribute Delete
568 Bytes
name: Sync to HuggingFace
on:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # 🔥 IMPORTANT FIX
- name: Sync to HF
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
git config --global user.email "action@github.com"
git config --global user.name "github-actions"
git remote add hf https://Ajitdoval:$HF_TOKEN@huggingface.co/spaces/Ajitdoval/devportal2
git push hf main --force