Skip to content

run BioModelsCache.py #17

run BioModelsCache.py

run BioModelsCache.py #17

name: run BioModelsCache.py
on:
schedule:
# runs the first day of every month
- cron: '0 0 1 * *'
workflow_dispatch:
inputs:
update_cache:
description: 'Update Biomodels cache'
required: false
default: 'No input needed'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v4
with:
python-version: '3.11.6'
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pwd
- name: execute BioModelsCache.py script
run: python BioModelsCache.py
working-directory: src
- name: Check in updated cached_biomodels.json
run: |
date > generated.txt
git config user.name github-actions
git config user.email [email protected]
git commit -m "Updated cached biomodels info" src/cached_biomodels.json
git push