Skip to content

Sync models

Sync models #527

Workflow file for this run

name: Sync models
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install requests bs4 tqdm
- name: Run update script
run: |
python gen-table.py
- name: Commit and push changes
run: |
git config --global user.name "github-actions"
git config --global user.email "actions@github.com"
git add README.md
git diff --cached --quiet || git commit -m "Update models and DL links"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}