Skip to content

Nightly models.json update #34

Nightly models.json update

Nightly models.json update #34

name: Nightly models.json update
on:
schedule:
- cron: '0 8 * * *' # Midnight PST
workflow_dispatch: # Allows manual trigger from GitHub UI
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: gh-pages
- name: Install dependencies
run: |
pip3 install schema-markdown
- name: Run script
run: python3 models/models.py > models/models.json
- name: Commit and push changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git commit -am "Update models.json" || exit 0
git push