Templates / Save your workflows into a Gitlab repository

Save your workflows into a Gitlab repository

Ready for 3.0

by Julien DEL RIO ✓ · 6,352 views · created 2024-08-22 · DevOps

Ready 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”.

  1. Globals (Edit Fields (Set)): sets or maps fields
  2. Retrieve all workflows (n8n): uses n8n
  3. Loop Over Workflows (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Get file (GitLab): get (file)
  5. Extract from File: extracts data from a file (from json)
  6. Save each version in a different field (Edit Fields (Set)): sets or maps fields
  7. File status (Code): runs custom JavaScript code
  8. Switch: routes items into 3 branches
  9. Create file (GitLab): work with file
  10. Status same (Edit Fields (Set)): sets or maps fields

…plus 4 more steps. See the full node list below.

Services it uses

GitLab

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)

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…

Excerpt from Julien DEL RIO's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.