HfHub #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |