Back up workflows to GitHub with Vivere heartbeat alerts
UnknownWhat this workflow does
This workflow has 17 nodes and runs on a schedule (every day at 02:00). Along the way it connects Vivere (community).
How it runs
Trigger: On a schedule (every day at 02:00).
- Config (Edit Fields (Set)): sets 6 fields: pingUrl, githubApiUrl, owner…
- Ping start (Vivere): start (ping)
- Get all workflows (n8n): uses n8n
- Build backup files (Code): runs custom JavaScript code
- Describe the error (Code): runs custom JavaScript code
- Loop over workflows (Loop Over Items (Split in Batches)): loops over the items in batches
- Ping fail (Vivere): fail (ping)
- Count the results (Code): runs custom JavaScript code
- Read the file on GitHub (HTTP Request): calls an HTTP API
- Mark the run failed (Stop and Error): stops the run with an error
…plus 6 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-vivere is verified or supports 3.0 (used in Ping start, Ping success, Ping fail).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Vivere
n8n-nodes-vivere.vivere - n8n
n8n-nodes-base.n8n - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Stop and Error
n8n-nodes-base.stopAndError
From the author
Quick overview This workflow runs nightly to export all workflows from your n8n instance and back them up as JSON files in a GitHub repository, while reporting run status and changes to a Vivere heartbeat monitor for alerting on failures or missed runs. How…