Templates / Version control n8n workflows in GitLab with customer tag organization

Version control n8n workflows in GitLab with customer tag organization

Ready for 3.0

by Omar Kennouche · 1,682 views · created 2025-08-29 · 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 17 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects GitLab.

How it runs

Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).

  1. Set Global GitLab Variables (Edit Fields (Set)): sets 6 fields: gitlab_owner, gitlab_project, gitlab_workflow_path…
  2. Fetch Workflows from n8n (n8n): uses n8n
  3. Clean & Normalize Workflow Name (Code): runs custom JavaScript code
  4. Prepare Workflow JSON for UI-Compatible Export (Code): runs custom JavaScript code
  5. Prepare GitLab File Path (Code): runs custom JavaScript code
  6. Fetch Existing File from GitLab (GitLab): get (file)
  7. Compare Workflow with GitLab Version (If): checks a condition and branches into true / false
  8. Create New File in GitLab (GitLab): work with file
  9. Update Existing File in GitLab (GitLab): edit (file)
  10. Mark as Unchanged (Edit Fields (Set)): sets 1 field: status

…plus 5 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 (8)

From the author

How it works - Triggers manually or on schedule (03:00 daily by default) - Fetches workflows tagged backup-workflows via n8n API - Normalizes workflow names and applies client: NAME tag convention - Prepares JSON in the same structure as an n8n UI export -…

Excerpt from Omar Kennouche'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.