Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

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

  1. On clicking 'execute'
  2. Globals
  3. Workflow name already exists
  4. If workflow already exists
  5. Set n8n existing workflows names
  6. GitHub - get all files
  7. n8n - get all workflows
  8. GitHub - get each file
  9. Set name and content
  10. n8n - create workflow
  11. Merge globals and files
  12. Merge Github and n8n workflows - Keep only non existing work
  13. Error Handler

Similar automations