mekevans / forestTIME-builder

Scripts to generate a forestTIME database. Ancestral code is in forestTIME and automatic-trees, which has a bloated git history.
GNU General Public License v3.0
1 stars 2 forks source link

Use matrix strategy for GitHub actions #22

Open Aariq opened 3 weeks ago

Aariq commented 3 weeks ago

This PR is a suggested way to remove redundancy in code. Rather than have a separate action defined for each state, this updated workflow uses a matrix strategy. Also, rather than having a separate R script for each state, it passes the state through an environment variable that is set in GitHub actions with env: and picked up in the R scrip with Sys.getenv().

I've tested this with a couple states on my fork, but it should work with all the states enabled.