Skip to content
Developer & DevOps

Push multiple files to GitHub repository via API

10 nodes 516 179 Automatic trigger
Download

Loading workflow…

Workflow Description

Automate pushing multiple files to your GitHub repository simultaneously using GitHub API, eliminating manual uploads and accelerating your development workflow with reliable batch operations.

How it works

  1. 1.Trigger automation manually or via scheduled schedule
  2. 2.Configure file data and repository details in variables
  3. 3.Send HTTP request to GitHub API to create a new commit
  4. 4.Update repository branch with uploaded files

Use cases

  • Automatically back up database exports to GitHub repositories
  • Deploy reports and CSV files to project repositories on a schedule

Requirements

  • GitHub Personal Access Token with repository write permissions
  • Basic understanding of REST API request structure

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

HTTP Request Manual Trigger Set Note

Details

Trigger Automatic trigger
Nodes 10
Apps 4
Views 516
Downloads 179

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (10)

Get latest commit SHA

HTTP Request

#1

Get base tree SHA

HTTP Request

#2

Create new tree

HTTP Request

#3

Create commit

HTTP Request

#4

Update branch

HTTP Request

#5

When clicking ‘Test workflow’

Manual Trigger

#6

Set Github Info

Set

#7

Sticky Note1

Sticky Note

#8

File 1

Set

#9

File 2

Set

#10
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime