Skip to content

HfHub

HfHub #63

Workflow file for this run

---
name: HfHub
"on":
workflow_dispatch:
schedule:
- cron: "0 8 * * *"
push:
branches: main
paths:
- pyrennial/hfhub.py
jobs:
models-datasets:
name: Collect all models and datasets from huggingface hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install self
run: python -m pip install .
- name: fetch
run: |-
python -m pyrennial.hfhub
- name: commit
run: |-
git config user.name "GitHub Actions Bot"
git config user.email "[email protected]"
git add datasets
git commit -m "Update huggingface hub datasets."
git push origin main