Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Upload Multiple Files to a GitHub Repository via REST API
Manually triggered workflow that pushes several files to a GitHub repository in one batch through the GitHub REST API, avoiding the native node's single-file limit.
What it does
## Push Multiple Files to GitHub Repo A streamlined workflow for uploading multiple files to a GitHub repository via the GitHub REST API. This solution addresses a significant limitation of the native GitHub n8n node, which supports only single-file uploads. This approach enables batch file operations, making it particularly valuable for automation scenarios that require simultaneous uploads of multiple files to your GitHub repositories. ### Setup Instructions: 1. Create a new GitHub Personal Access Token here as needed.
The steps
- Get latest commit SHA
- Get base tree SHA
- Create new tree
- Create commit
- Update branch
- When clicking ‘Test workflow’
- Set Github Info
- File 1
- File 2
Similar automations
Code, Git & Developer ToolsPush Multiple Files to GitHub with the REST API35 stepsCode, Git & Developer ToolsPush Multiple Files to GitHub in One Commit9 stepsCode, Git & Developer ToolsBack Up n8n Workflows to a GitHub Repository10 stepsCode, Git & Developer ToolsBack Up n8n Workflows to GitHub11 steps