mroswell / list-N

EPA List of COVID-19 Disinfectants

Home Page:list-n.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Actions questions

mroswell opened this issue · comments

  1. Does the db backup work?
  2. If three errors, will I lose the db?
  3. Is it pushing to Vercel, even if there were no changes?

@mroswell

  1. Yes.
  2. No. Any error (exit status != 0) in any step would prevent the next step from being run so if the fetched JSON data from EPA is not in the right format (e.g.), we would get something like parse error: Invalid ... from jq and the next steps won't run so no DB is created/rotated. For example: https://github.com/mroswell/list-N/runs/2519369155?check_suite_focus=true
  3. Yes. We can probably use diff to make sure the pushing only happens when there's difference(s) between the new and old JSON data.