Currently, all publication files are ran each time we push to main. Instead, we could check which publication and parameter files are updated from the previous commit and only rerun those. The process would look like:
Push to main.
Build a list of changed files from previous commit
Rerun only those publications that have changed, storing the publication list in memory
Load models.RDS into memory
Delete all old copies of models matching the list in (3)
Insert new models into dataframe
Rewrite models.RDS
We should allow for an action that reruns all pub files if desired.
Currently, all publication files are ran each time we push to
main
. Instead, we could check which publication and parameter files are updated from the previous commit and only rerun those. The process would look like:main
.models.RDS
into memorymodels.RDS
We should allow for an action that reruns all pub files if desired.