Skip to content

Update Models Data

Update Models Data #74

Workflow file for this run

name: Update Models Data
on:
schedule:
# Run daily at 2 AM UTC
- cron: '0 2 * * *'
workflow_dispatch: # Allow manual triggers
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Update models data
run: python scripts/update-models.py
- name: Check for changes
id: git-check
run: |
git diff --exit-code src/data/models.json || echo "changed=true" >> $GITHUB_OUTPUT
- name: Commit and push changes
if: steps.git-check.outputs.changed == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add src/data/models.json
git commit -m "chore: update models data from OpenVLM leaderboard"
git push