Back up workflows to GitHub with deterministic JSON exports
Ready for 3.0Ready 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.
What this workflow does
This workflow has 12 nodes and runs on a schedule (every day at 03:00). It uses only n8n's built-in nodes.
How it runs
Trigger: On a schedule (every day at 03:00).
- Configuration (Code): runs custom JavaScript code
- List workflows (n8n): get many (workflow)
- Normalise workflows (Code): runs custom JavaScript code
- Read branch ref (HTTP Request): calls an HTTP API (GET)
- Read current commit (HTTP Request): calls an HTTP API (GET)
- Read repo tree (HTTP Request): calls an HTTP API (GET)
- Build new tree (Code): runs custom JavaScript code
- Push new tree (HTTP Request): calls an HTTP API (POST)
- Anything changed (If): checks a condition and branches into true / false
- Create commit (HTTP Request): calls an HTTP API (POST)
…plus 1 more step. See the full node list below.
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.
Check at runtime on n8n 3.0
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (5)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Code
n8n-nodes-base.code - n8n
n8n-nodes-base.n8n - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if
From the author
Quick overview This workflow runs daily and exports all workflows from your n8n instance, normalizes them into deterministic JSON files, and pushes the result to a GitHub repository using the Git Data API so changes are committed only when the exports…