Selectively import workflows from GitHub, including nested folders
Ready for 3.0What this workflow does
This workflow has 26 nodes and runs when someone submits an n8n form (“Repo Loader”). Along the way it connects GitHub.
How it runs
Trigger: When someone submits an n8n form (“Repo Loader”).
- Get repositories for an organization (GitHub): work with organization
- Set Repository Name and URL (Edit Fields (Set)): sets 2 fields: repo_name, repo_url
- Aggregate: combines items into one
- Create JSON Repo Options (Code): runs custom JavaScript code
- Select Repos (n8n Form): shows the next form page
- Initialise Loop State (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Set Current Path (Code): runs custom JavaScript code
- List Files (GitHub): list (file)
- Create JSON Workflow Options (Code): runs custom JavaScript code
…plus 14 more steps. See the full node list below.
Services it uses
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 (12)
- n8n Form Trigger
n8n-nodes-base.formTrigger - GitHub
n8n-nodes-base.github - n8n
n8n-nodes-base.n8n - Extract from File
n8n-nodes-base.extractFromFile - n8n Form
n8n-nodes-base.form - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - Split Out
n8n-nodes-base.splitOut - Merge
n8n-nodes-base.merge - Aggregate
n8n-nodes-base.aggregate
From the author
This template lets you selectively import n8n workflows from a GitHub repository, even when your repository uses deeply nested folder structures. Unlike most import workflows, this template does not load everything automatically. Instead, it: • Traverses all…