Templates / Deploy n8n workflows with GitHub-based version control

Deploy n8n workflows with GitHub-based version control

Ready for 3.0

by Mychel Garzon ✓ · 172 views · created 2026-05-18 · 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 22 nodes and runs when someone submits an n8n form (“🚀 DevOps Control Center”) (plus 1 other trigger). Along the way it connects GitHub.

How it runs

Trigger: When someone submits an n8n form (“🚀 DevOps Control Center”) (plus 1 other trigger).

  1. Fetch Local Workflow (n8n): get
  2. Build Error Response (Edit Fields (Set)): sets 5 fields: success, error, failed_node…
  3. Repo Config (Edit Fields (Set)): sets 3 fields: repoOwner, repoName, branch
  4. Build File Context (Code): runs custom JavaScript code
  5. Get GitHub File SHA (HTTP Request): calls an HTTP API
  6. Code: runs custom JavaScript code
  7. Content Changed? (If): checks a condition and branches into true / false
  8. GitHub File Exists? (If): checks a condition and branches into true / false
  9. No Changes Detected (Edit Fields (Set)): sets 5 fields: success, message, workflow_name…
  10. Update GitHub File (GitHub): edit (file)

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

Services it uses

GitHub

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

Say goodbye to messy JSON exports. Treat your n8n automations like real software with a built-in CI/CD pipeline. Manually moving workflows between testing and production is a recipe for versioning nightmares, overwritten data, and broken webhooks. This…

Excerpt from Mychel Garzon'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.