Templates / Back up n8n workflows to GitHub with change detection and email alerts

Back up n8n workflows to GitHub with change detection and email alerts

Ready for 3.0

by atlasforger · 0 views · created 2026-11-25

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 18 nodes and runs when another workflow fails (error workflow) (plus 2 other triggers). Along the way it connects GitHub.

How it runs

Trigger: When another workflow fails (error workflow) (plus 2 other triggers).

  1. Set Alert Details (Edit Fields (Set)): sets 4 fields: subject, message, alertFrom…
  2. Set Configuration Fields (Edit Fields (Set)): sets 3 fields: githubOwner, githubRepo, backupFolder
  3. Send Alert Email (Send Email): sends an email over SMTP
  4. Fetch All Workflows (n8n): uses n8n
  5. Check Workflows Retrieved (If): checks a condition and branches into true / false
  6. Prepare Workflow Files (Code): runs custom JavaScript code
  7. Stop If No Workflows (Stop and Error): stops the run with an error
  8. Fetch File from GitHub (GitHub): get (file)
  9. Compare File Contents (Code): runs custom JavaScript code
  10. Check File Exists (If): checks a condition and branches into true / false

…plus 4 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 (11)

From the author

Quick overview This workflow runs manually or daily on a schedule to export all workflows from an n8n instance and back them up as JSON files in a GitHub repository, only committing files when changes are detected and sending an email alert if a scheduled run…

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