Templates / Save your workflows into a GitHub repository

Save your workflows into a GitHub repository

Needs changes

by Brian Burnett · 13,716 views · created 2020-12-09 · DevOps

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Function (legacy), Cron. 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 16 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects GitHub.

How it runs

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

  1. Globals (Edit Fields (Set)): sets or maps fields
  2. N8N Workflows (HTTP Request): calls an HTTP API
  3. dataArray (Function): runs custom JavaScript (legacy Function node)
  4. OneAtATime (Loop Over Items (Split in Batches)): loops over the items in batches
  5. GitHub: get (file)
  6. N8N Workflow Detail (HTTP Request): calls an HTTP API
  7. Merge: merges the data from its input branches
  8. isDiffOrNew (Function): runs custom JavaScript (legacy Function node)
  9. github_status (Switch): routes items into 3 branches
  10. GitHub: edit (file)

…plus 1 more step. See the full node list below.

Services it uses

GitHub

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Function (legacy) in dataArray, isDiffOrNew: replace with Code node, mode 'Run Once for All Items'.
  • Cron in Daily @ 20:00: replace with Schedule Trigger.
Removed in 3.0Replace with
Function (legacy)
dataArray, isDiffOrNew
Code node, mode 'Run Once for All Items'
Cron
Daily @ 20:00
Schedule Trigger

Nodes used (10)

From the author

Basics Provides a mechanism to save all your workflows into a github repository and path (of your choosing). These can then be shared through your entire org and used to track changes (if you make any sad 'oopsies'. Flow 1. Obtains and creates listing of…

Excerpt from Brian Burnett'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.