Skip to content

Auto-update check_models.js #139

Auto-update check_models.js

Auto-update check_models.js #139

Workflow file for this run

name: Auto-update check_models.js
on:
workflow_dispatch:
schedule:
- cron: '18 3 * * *'
jobs:
check-models:
name: Check models and create check_models.js file
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: catalog-validation
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install Scivision
run: pip install -e .
- name: Install chardet
run: pip install chardet
- name: Check model catalog
run: scivision-check-models
- name: Store artifact
uses: actions/upload-artifact@v4
with:
name: check-models-report
path: check_models.js
- name: Update check_models.js in frontend repository
run: |
mv -f check_models.js frontend/src/consts/check_models.js
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git pull origin catalog-validation
git add .
git commit -m "auto-update via GH Action"
git push origin catalog-validation