workflows.fit
Back to n8n workflows
n8n templateFreeBy Akhil Varma Gadiraju

Automated daily backup of n8n workflows to GitLab repositories

n8n Workflow: Sync Workflows with GitLab How It Works This workflow ensures that your self-hosted n8n workflows are version-controlled in a GitLab repository. It compares each current workflow from n8n with its stored...

DevelopmentCore NodesSetNo OpSplit In BatchesGitlab
Loading interactive preview...

Template notes

n8n Workflow: Sync Workflows with GitLab

How It Works

This workflow ensures that your self-hosted n8n workflows are version-controlled in a GitLab repository. It compares each current workflow from n8n with its stored counterpart in GitLab. If any differences are detected, the GitLab file is updated with the latest version.

Core Logic: 1. Retrieve Workflows – Fetch all workflows from the n8n REST API.

2. Compare with GitLab – For each workflow, fetch the corresponding file from GitLab and compare the JSON.

3. Update if Changed – If differences exist, commit the updated workflow to GitLab using its API.

---

Setup