Push multiple files to GitHub repository via Github REST API
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 9 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Github Info (Edit Fields (Set)): sets 5 fields: Github Token, Github Repo, Github Username…
- File (Edit Fields (Set)): sets 1 field: content
- File (Edit Fields (Set)): sets 1 field: content
- Get latest commit SHA (HTTP Request): calls an HTTP API
- Get base tree SHA (HTTP Request): calls an HTTP API
- Create new tree (HTTP Request): calls an HTTP API (POST)
- Create commit (HTTP Request): calls an HTTP API (POST)
- Update branch (HTTP Request): calls an HTTP API (PATCH)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (3)
- HTTP Request
n8n-nodes-base.httpRequest - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set
From the author
Introduction This workflow offers a streamlined solution for uploading multiple files to a GitHub repository simultaneously using GitHub's REST API. It addresses a significant limitation of n8n's native GitHub node, which only supports single-file uploads at…