-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1.06 KB
/
run_bioModels_cache.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 github-actions@github.com
git commit -m "Updated cached biomodels info" src/cached_biomodels.json
git push