[] Restore workflow from GitHub to n8n
Workflow Description
This automation template retrieves workflow definitions stored in a GitHub repository and restores them directly to your n8n account, providing a reliable backup and recovery mechanism for critical processes without data loss.
How it works
- 1.Trigger the process manually or enable automatic activation when the repository updates
- 2.Fetch workflow files from GitHub using the GitHub API
- 3.Transform and parse retrieved data into n8n's standard format
- 4.Validate data integrity and check required conditions before import
- 5.Import workflows to n8n using the n8n API
- 6.Log results and capture any errors encountered during restoration
Use cases
- Restore a deleted or corrupted workflow from a GitHub backup
- Duplicate workflows across different n8n accounts or instances
- Use GitHub as a version control source for managing workflow configurations
- Automate team workflow recovery with a single trigger
Requirements
- A GitHub repository containing workflow files in JSON format
- Valid API tokens for both GitHub and n8n authentication
- Sufficient permissions to read from GitHub and write to n8n
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (17)
On clicking 'execute'
Manual Trigger
Globals
Set
Note
Sticky Note
Workflow name already exists
No Op
If workflow already exists
If
Set n8n existing workflows names
Set
GitHub - get all files
Github
n8n - get all workflows
N8N
GitHub - get each file
Github
Set name and content
Set
n8n - create workflow
N8N
Note1
Sticky Note
Merge globals and files
Merge
Merge Github and n8n workflows - Keep only non existing workflows based on the name
Merge
Note2
Sticky Note
Note3
Sticky Note
Note4
Sticky Note