supportchef / covid-by-region

Plotting cases of COVID-19 by region and across regions over time
https://covidbyregion.com
5 stars 0 forks source link

Update databases automatically #9

Closed ronshapiro closed 4 years ago

ronshapiro commented 4 years ago

I imagine the data gets updated every time @sean9keenan does a new push... would be cool if we could make this automatic.

ronshapiro commented 4 years ago

Actually, I just saw that @sean9keenan started (finished?) working on a bot to update the data - does it also redeploy the site?

sean9keenan commented 4 years ago

It does 😁

I wrote one Github action which attempts to fetch new data every 3 hours, and another that redeploys the website whenever something is merged into master!

sean9keenan commented 4 years ago

Correction - I broke it sometime last night because I didn't want it to throw errors every time it didn't find an update (but it was properly updating!). I just pushed a fix that will hopefully both not throw errors, and update when needed 😅