I have a Jekyll site on Netlify and would like to be able to have the following workflow, but not sure how (or the simplest way) to accomplish:
- Update a CSV file in my repo (commit / push to master)
- Have Netlify run an NPM script I’ve created that creates some json files based on that updated csv and saves them to the
_datadir (prior to building the site)
- Have Netlify build my Jekyll app including the newly created json files
I know how (and have successfully) ran the NPM script prior to Netlify build, but of course the changes to the json files are not committed/pushed to the repo, so the subsequent build does not have them…
So is it possible/recommended that I commit / push that change from within Netlify (there by triggering another build)? Or is there a better solution to this problem?