← All N8N workflows
Developer toolsCodeGithubHTTP RequestIfManual Trigger

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.

Workflow preview
TriggerOn clicking 'execute'Manual TriggerRoutingLoop Over ItemsLoop Over ItemsTriggerSchedule TriggerSchedule TriggerWeb / APIGet Squarespace dataHTTP RequestRoutingIfIfCodeClean up FootersCodeCodeClean up HeadersCodeTransformGet Footer InjectionEdit FieldsTransformGet Header InjectionEdit FieldsIntegrationEdit Injection dataGithubIntegrationCreate Injection dataGithubTransformGlobalsEdit FieldsTransformMerge InjectionsMerge

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.

Workflow node names, types, and operations
NodeCategoryTypeOperation
On clicking 'execute'TriggerManual TriggerSee node parameters
Loop Over ItemsRoutingLoop Over ItemsSee node parameters
Schedule TriggerTriggerSchedule TriggerSee node parameters
Get Squarespace dataWeb / APIHTTP RequestSee node parameters
IfRoutingIfSee node parameters
Clean up FootersCodeCodeSee node parameters
Clean up HeadersCodeCodeSee node parameters
Get Footer InjectionTransformEdit FieldsSee node parameters
Get Header InjectionTransformEdit FieldsSee node parameters
Edit Injection dataIntegrationGithubfile / edit
Create Injection dataIntegrationGithubfile
GlobalsTransformEdit FieldsSee node parameters
Merge InjectionsTransformMergeSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. 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 👇

More in Developer tools