Nightly models.json update #45
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: 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 |