Closed td928 closed 2 years ago
https://nyc3.digitaloceanspaces.com/edm-publishing/db-developments/{{ version }}/output/housing.csv
which does not exist with the current implementation of the upload step
https://github.com/NYCPlanning/db-developments/blob/43d1e9bfb81e307a29685a7de5302bf1f43cd638/bash/config.sh#L60-L68
modify the upload function to take branch the Actions being run on as another input, then if the branch is main do not write to a separate main folder in DO but directly under https://nyc3.digitaloceanspaces.com/edm-publishing/db-developments
main
https://nyc3.digitaloceanspaces.com/edm-publishing/db-developments
publish.yml
https://nyc3.digitaloceanspaces.com/edm-publishing/db-developments/{{ version }}/output/housing.csv
which does not exist with the current implementation of the upload step
https://github.com/NYCPlanning/db-developments/blob/43d1e9bfb81e307a29685a7de5302bf1f43cd638/bash/config.sh#L60-L68
Propsed solution
modify the upload function to take branch the Actions being run on as another input, then if the branch is
main
do not write to a separate main folder in DO but directly underhttps://nyc3.digitaloceanspaces.com/edm-publishing/db-developments