Skip to content
NEWMarketplace and your team: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. Get latest commit SHA
  2. Get base tree SHA
  3. Create new tree
  4. Create commit
  5. Update branch
  6. When clicking ‘Test workflow’
  7. Set Github Info
  8. File 1
  9. File 2

Similar automations