Push Multiple Files to GitHub Repo via GitHub REST API
detail.loadingPreview
Uploads multiple files to a GitHub repository using the GitHub REST API, overcoming the native node's single-file limitation.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow automates the process of pushing multiple files to a GitHub repository. It leverages the GitHub REST API to perform batch file operations, which is particularly useful when the default n8n GitHub node's single-file upload capability is insufficient.
Key Features
- Uploads multiple files simultaneously.
- Utilizes the GitHub REST API for advanced operations.
- Enables batch file operations for efficient workflow automation.
- Provides a workaround for the limitations of the native GitHub n8n node.
How To Use
- Create a GitHub Personal Access Token with 'repo' scope for write access.
- Configure the
Set Github Infonode with your GitHub Token, Repository Name, Username, and desired Branch. - Define the content and paths for your files within the
File 1andFile 2nodes (or add moreSetnodes for additional files). - Update the
Create new treenode to include entries for all files you wish to upload, specifying their paths, modes, types, and content. - Execute the workflow by clicking 'Test workflow' on the
When clicking ‘Test workflow’node.
Apps Used
Workflow JSON
{
"id": "18254b0d-d23c-4c83-a894-3b0563c44c01",
"name": "Push Multiple Files to GitHub Repo via GitHub REST API",
"nodes": 0,
"category": "GitHub Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 18254b0d-d23c...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Automate GitHub Issue Assignment
Automatically assigns GitHub issues based on keywords or lack of assignees.
Restore Workflows From GitHub
Automate the restoration of n8n workflows from GitHub backups.
Convert Any Webpage to PDF and Save Locally
This n8n workflow provides a simple way to convert any public webpage URL into a PDF document. Once converted, the PDF file is automatically saved to your local disk, making it easy to archive or share web content offline.
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Telegram Profanity & Toxicity Filter
This n8n workflow automatically monitors incoming Telegram messages for profanity and toxic language. It leverages Google's Perspective API to analyze message content, and if a message is deemed inappropriate, the workflow sends an automated warning response back to the sender.
Robust Concurrency Control for n8n Workflows with Redis
Prevent simultaneous execution of critical n8n workflows or tasks using a centralized, Redis-backed locking mechanism. This reusable utility workflow ensures data integrity and resource management by allowing other workflows to acquire, check, and release locks.