Upload blueprints to github

Hey!

Im trying to upload blueprints of Make scenarios to github to be able to track changes/ backup / search blueprints.

The Github app in Make doesnt have a module for uploading a commit and the only way I see possible is to use GraphQL which does not seem to have a straightforward way to accomplish this.

Has anyone tackled this and can share how they upload blueprints from Make to Github?

There is a Github REST API, but there is no endpoint for creating commits.

To upload files to a Github repo you’ll need to create commits via Git command line, and not via the API. It’s not that simple.

Instead, you can try using Github Gists instead, which also has versioning and you can backup multiple files at the same time. The Gists REST endpoints can be found here REST API endpoints for gists - GitHub Docs

3 Likes

Thank you!

  1. I’m assuming then that to make those RESP API calls, that will have to be done using a standard HTTP request instead of the Github app? The app only supports GraphQL calls that are not that intuitive. Gists also are not meant to be in a folder structure, so that might not be the best option.

  2. It looks like GraphQL does support uploading commits in some way (using createCommitOnBranch), but I havent been able to find a usage example to implement it correctly.

If I won’t be able to do this via API, the other option would be a server side solution outside of Make as you pointed out.

Yes. You can use the HTTP “Make an API Key Request” with a Github PAT.

Here’s how I do it:

3 Likes