Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Restore n8n Workflows from GitHub
When you run it, it lists workflow files in GitHub, checks which already exist in n8n, and creates the missing workflows through the n8n API.
What it does
# [OPS] Restore workflows from GitHub to n8n ## Overview Automated workflow: [OPS] Restore workflows from GitHub to n8n. This workflow integrates 8 different services: stickyNote, n8n, merge, set, manualTrigger. It contains 17 nodes and follows best practices for error handling and security. ## Workflow Details - Total Nodes: 17 - Node Types: 8 - Error Handling: ✅ Implemented - Security: ✅ Hardened (no sensitive data) - Documentation: ✅ Complete ## Node Breakdown - On clicking 'execute': manualTrigger - Globals: set - Note: stickyNote - Workflow name already exists: noOp - 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 - ... and 7 more nodes ## Usage Instructions 1. Configure Credentials: Set up all required API keys and credentials 2. Update Variables: Replace any placeholder values with actual data 3. Test Workflow: Run in test mode to verify functionality 4. Deploy: Activate the workflow for production use ## Security Notes - All sensitive data has been removed or replaced with placeholders - Error handling is implemented for reliability - Follow security best practices when configuring credentials ## Troubleshooting - Check error logs if workflow fails - Verify all credentials are properly configured - Ensure all required services are accessible
The steps
- On clicking 'execute'
- Globals
- Workflow name already exists
- If workflow already exists
- Set n8n existing workflows names
- GitHub - get all files
- n8n - get all workflows
- GitHub - get each file
- Set name and content
- n8n - create workflow
- Merge globals and files
- Merge Github and n8n workflows - Keep only non existing work
- Error Handler
Similar automations
Code, Git & Developer ToolsRestore n8n Workflows from GitHub, Skipping Existing Ones12 stepsCode, Git & Developer ToolsRestore n8n Workflows from Merged GitHub Pull Requests13 stepsCode, Git & Developer ToolsRestore n8n Workflows from GitHub Backups7 stepsCode, Git & Developer ToolsRestore n8n Workflows from GitHub18 steps