NYCPlanning / db-developments

🏠 🏘️ 🏗️ Developments Database
https://nycplanning.github.io/db-developments
8 stars 2 forks source link

Write to `spaces/edm-publishing/db-developments/main`? #522

Closed SashaWeinstein closed 1 year ago

SashaWeinstein commented 2 years ago

Right now the Upload step has this logic:

local branchname=$(git rev-parse --symbolic-full-name --abbrev-ref HEAD)
local DATE=$(date "+%Y-%m-%d")
if [[ $branchname == "main" ]] 
then
  local SPACES="spaces/edm-publishing/db-developments"
else
  local SPACES="spaces/edm-publishing/db-developments/$branchname"
fi

This is not how we write to DO for other data products like PLUTO or FacDB. Would be great to always write to a folder named after the branch, but want to make sure this won't break things downstream