Backup n8n workflows to Github
Ready for 3.0What this workflow does
This workflow has 27 nodes and runs manually, when you click “Execute workflow” (plus 2 other triggers). Along the way it connects GitHub and Discord.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 2 other triggers).
- Starting Message (Discord): work with message
- Config (Edit Fields (Set)): sets 3 fields: repo_owner, repo_name, data
- n8n: uses n8n
- Merge: merges the data from its input branches
- Get file data (GitHub): get (file)
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- verifyTheDifference (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Wait: waits 10 seconds
- Execute Workflow (Execute Sub-workflow): calls another n8n workflow
…plus 11 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (15)
- Manual Trigger
n8n-nodes-base.manualTrigger - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - n8n
n8n-nodes-base.n8n - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - No Operation, do nothing
n8n-nodes-base.noOp - GitHub
n8n-nodes-base.github - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Discord
n8n-nodes-base.discord - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch
From the author
Introduction This workflow will backup all of your existed workflows to a single Github repository. The Backup folders' name are based on the current backup date and have default format: "yyyy/MM/dd" (setup at "Create sub path" node). Throughout the backup…