Backup Squarespace code injections to Github
Ready for 3.0What this workflow does
This workflow has 13 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects GitHub. It also calls beyondspace.studio over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Get Squarespace data (HTTP Request): calls beyondspace.studio
- Get Header Injection (Edit Fields (Set)): sets 5 fields: value, id, name…
- Get Footer Injection (Edit Fields (Set)): sets 5 fields: value, id, name…
- Clean up Headers (Code): runs custom JavaScript code
- Clean up Footers (Code): runs custom JavaScript code
- Merge: merges the data from its input branches
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Globals (Edit Fields (Set)): sets 3 fields: repo.owner, repo.name, repo.path
- Edit Injection data (GitHub): edit (file)
- If: checks a condition and branches into true / false
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: beyondspace.studio
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 (9)
- Manual Trigger
n8n-nodes-base.manualTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Schedule Trigger
n8n-nodes-base.scheduleTrigger - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - GitHub
n8n-nodes-base.github - Merge
n8n-nodes-base.merge
From the author
This workflow backup Squarespace website header and footer injections into Github How It Works The Squarespace injections are fetched when an URL is placed Setup Instructions First, edit HTTP Request's URL to put your Squarespace site URL there Next, to…