Templates / Push multiple files to GitHub repository via Github REST API

Push multiple files to GitHub repository via Github REST API

Ready for 3.0

by Custom Workflows AI ✓ · 1,209 views · created 2025-03-24 · DevOps

Ready 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”.

  1. Set Github Info (Edit Fields (Set)): sets 5 fields: Github Token, Github Repo, Github Username…
  2. File (Edit Fields (Set)): sets 1 field: content
  3. File (Edit Fields (Set)): sets 1 field: content
  4. Get latest commit SHA (HTTP Request): calls an HTTP API
  5. Get base tree SHA (HTTP Request): calls an HTTP API
  6. Create new tree (HTTP Request): calls an HTTP API (POST)
  7. Create commit (HTTP Request): calls an HTTP API (POST)
  8. 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)

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…

Excerpt from Custom Workflows AI's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.