WorkflowGitHubOpen

Push Multiple Files to Github Repo via Github REST API

Triggered manually or by an app event. Connects HTTP request. 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 a

Front matter
name: Push Multiple Files to Github Repo via Github REST API
description: Triggered manually or by an app event. Connects HTTP request. ## 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 Persona
category: Automation
kind: Workflow
software: HTTP request

Push Multiple Files to Github Repo via Github REST API

Triggered manually or by an app event. Connects HTTP request. ## 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 Persona

Steps

  • Get latest commit SHA (httpRequest)
  • Get base tree SHA (httpRequest)
  • Create new tree (httpRequest)
  • Create commit (httpRequest)
  • Update branch (httpRequest)
  • When clicking ‘Test workflow’ (manualTrigger)
  • Set Github Info (set)
  • Sticky Note1 (stickyNote)
  • File 1 (set)
  • File 2 (set)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source: https://github.com/Zie619/n8n-workflows/blob/main/Http/1640_HTTP_Stickynote_Automation_Webhook.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.