MSCOCO / .github /workflows /push_to_hub.yaml
shunk031's picture
Initialize (#1)
1d9dac8 unverified
raw
history blame
No virus
622 Bytes
name: Sync to Hugging Face Hub
on:
workflow_run:
workflows:
- CI
branches:
- main
types:
- completed
jobs:
push_to_hub:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Push to Huggingface hub
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_USERNAME: ${{ secrets.HF_USERNAME }}
run: |
git fetch --unshallow
# git lfs fetch --all origin main
git push --force https://${HF_USERNAME}:${HF_TOKEN}@huggingface.co/datasets/${HF_USERNAME}/MSCOCO main