Library / Code, Git & Developer Tools
Code, Git & Developer Tools
Back Up n8n Workflows to GitHub Only When Changed
On a schedule or manual run, it compares each n8n workflow with the GitHub copy and commits only new or changed files.
What it does
# Manualtrigger Workflow ## Overview Automated workflow: Manualtrigger Workflow. This workflow integrates 16 different services: stickyNote, httpRequest, code, scheduleTrigger, n8n. It contains 25 nodes and follows best practices for error handling and security. ## Workflow Details - Total Nodes: 25 - Node Types: 16 - Error Handling: ✅ Implemented - Security: ✅ Hardened (no sensitive data) - Documentation: ✅ Complete ## Node Breakdown - On clicking 'execute': manualTrigger - Sticky Note: stickyNote - n8n: n8n - Return: set - Get File: httpRequest - If file too large: if - Merge Items: merge - isDiffOrNew: code - Check Status: switch - Same file - Do nothing: noOp - ... and 15 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'
- n8n
- Return
- Get File
- If file too large
- Merge Items
- isDiffOrNew
- Check Status
- Same file - Do nothing
- File is different
- File is new
- Create new file
- Edit existing file
- Loop Over Items
29 steps in total.
Similar automations
Code, Git & Developer ToolsBack Up n8n Workflows to GitHub Only When Changed30 stepsCode, Git & Developer ToolsRestore n8n Workflows from Merged GitHub Pull Requests13 stepsCode, Git & Developer ToolsBack Up n8n Workflows to GitHub with Slack Alerts23 stepsCode, Git & Developer ToolsBack Up n8n Workflows to a GitHub Repository10 steps