Save your workflows into a Gitlab repository
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 19 nodes and runs manually, when you click “Execute workflow”. Along the way it connects GitLab.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Globals (Edit Fields (Set)): sets or maps fields
- Retrieve all workflows (n8n): uses n8n
- Loop Over Workflows (Loop Over Items (Split in Batches)): loops over the items in batches
- Get file (GitLab): get (file)
- Extract from File: extracts data from a file (from json)
- Save each version in a different field (Edit Fields (Set)): sets or maps fields
- File status (Code): runs custom JavaScript code
- Switch: routes items into 3 branches
- Create file (GitLab): work with file
- Status same (Edit Fields (Set)): sets or maps fields
…plus 4 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 (9)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - No Operation, do nothing
n8n-nodes-base.noOp - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - GitLab
n8n-nodes-base.gitlab - Code
n8n-nodes-base.code - Extract from File
n8n-nodes-base.extractFromFile - Switch
n8n-nodes-base.switch - n8n
n8n-nodes-base.n8n
From the author
This template is inspired by Save your workflows into a GitHub repository by hikerspath and Back Up Your n8n Workflows To Github by jon-n8n. Basic Retrieve all workflows from an n8n instance and save it on a gitlab project. If the workflow exist, il will only…