Backup Squarespace code Injections to Github
Configured with Github, HTTP Request, Schedule Trigger, Loop Over Items. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- Routing
- Web / API
- Code
- Transform
- Integration
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| On clicking 'execute' | Trigger | Manual Trigger | See node parameters |
| Loop Over Items | Routing | Loop Over Items | See node parameters |
| Schedule Trigger | Trigger | Schedule Trigger | See node parameters |
| Get Squarespace data | Web / API | HTTP Request | See node parameters |
| If | Routing | If | See node parameters |
| Clean up Footers | Code | Code | See node parameters |
| Clean up Headers | Code | Code | See node parameters |
| Get Footer Injection | Transform | Edit Fields | See node parameters |
| Get Header Injection | Transform | Edit Fields | See node parameters |
| Edit Injection data | Integration | Github | file / edit |
| Create Injection data | Integration | Github | file |
| Globals | Transform | Edit Fields | See node parameters |
| Merge Injections | Transform | Merge | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
githubApi
Workflow notes
Backup to GitHub
Backup to GitHub
This workflow will backup Squarespace header & footer Injections to Github
Setup
👉 Edit the Squarespace node to place the website URL there
👉 Open Globals node and update the values below 👇
- repo.owner: your Github username
- repo.name: the name of your repository
- repo.path: the folder to use within the repository.
If your username was john-doe and your repository was called n8n-backups and you wanted the injections to go into a squarespace-backup folder you would set:
- repo.owner - john-doe
- repo.name - n8n-backups
- repo.path - squarespace-backup/
Each site's injections will be added into seperate folder
Edit this node 👇
Edit this node 👇
Squarespace URL
Backup Squarespace code Injections to Github
Backup Squarespace code Injections to Github
Purpose and structure
This folder contains the Backup Squarespace code Injections to Github workflow. Its executable nodes use code, github, httpRequest, if, manualTrigger, merge, scheduleTrigger, set, splitInBatches. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
On clicking 'execute', Schedule Trigger
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Code/1844_Code_Schedule_Export_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Main workflow loop
- Edit this node 👇