Ask HN: How do you automate file upload to GitHub?
We need to upload a file to GitHub on demand (a table routing JSON file to minimize API calls) and want to automate it so non-technical users can push the file.
Our ideal workflow is to generate the JSON and push automatically via webhook or API call
How would you approach it? Things you’d be concerned about with this approach?
Some additional context:
- We have to solve this problem in this way due to limitations with another code base we rely on.
- this is a private repo so we aren’t concerned about merge issues, just overwriting the file is fine