Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. On clicking 'execute'
  2. n8n
  3. Return
  4. Get File
  5. If file too large
  6. Merge Items
  7. isDiffOrNew
  8. Check Status
  9. Same file - Do nothing
  10. File is different
  11. File is new
  12. Create new file
  13. Edit existing file
  14. Loop Over Items

29 steps in total.

Similar automations