Templates / Deploy workflows from GitHub pushes to a production n8n instance

Deploy workflows from GitHub pushes to a production n8n instance

Ready for 3.0

by Adriaan van Niekerk ✓ · 3 views · created 2026-09-05 · 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 13 nodes and runs on Github events. Along the way it connects GitHub.

How it runs

Trigger: On Github events.

  1. Validate Trigger Condition (If): checks a condition and branches into true / false
  2. Set GitHub Repository Variables (Edit Fields (Set)): sets or maps fields
  3. Fetch GitHub File Content (HTTP Request): calls an HTTP API
  4. Set Workflow Name (Edit Fields (Set)): sets or maps fields
  5. Fetch All Production Workflows (HTTP Request): calls an HTTP API
  6. Analyze Retrieved Workflows (If): checks a condition and branches into true / false
  7. Set Workflow ID (Edit Fields (Set)): sets or maps fields
  8. Prepare JSON for Creation (Code): runs custom JavaScript code
  9. Retrieve n8n Workflow (HTTP Request): calls an HTTP API
  10. Create New n8n Workflow (HTTP Request): calls an HTTP API

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

From the author

Quick overview This workflow triggers on GitHub push events, fetches the changed n8n workflow JSON from the repository, cleans deployment-specific metadata, and then uses the n8n REST API to update an existing workflow or create a new one in a production n8n…

Excerpt from Adriaan van Niekerk'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.