Automation library · Integrations

Deploy n8n workflows with GitHub

Started by someone submitting a form, and works across GitHub. 22 steps, 4 branches: large, and worth reading before you trust it with anything live.

Large

22 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 2Logic 12Service 8

The steps in the order they run, from what starts it.

  1. 1DevOps FormForm triggerStarts it
  2. 2Workflow Error TriggerError triggerStarts it
  3. 3Fetch Local WorkflowN8nService
  4. 4Build Error ResponseSetLogic
  5. 5Repo ConfigSetLogic
  6. 6Build File ContextCodeLogic
  7. 7Get GitHub File SHAHttp RequestService
  8. 8Code in JavaScriptCodeLogic
  9. 9Content Changed?IfLogic
  10. 10GitHub File Exists?IfLogic
  11. 11No Changes DetectedSetLogic
  12. 12Update GitHub FileGithubService
  13. 13Create GitHub FileGithubService
  14. 14Is Production Deploy?IfLogic
  15. 15Find Workflow on ProdN8nService
  16. 16Sandbox Backup CompleteSetLogic
  17. 17Resolve Prod Workflow IDCodeLogic
  18. 18Workflow Exists on Prod?IfLogic
  19. 19Update on Prod ServerN8nService
  20. 20Create on Prod ServerN8nService
  21. 21Activate on ProductionN8nService
  22. 22Build Success ResponseSetLogic

How it's built

Starts on
Someone submitting a form
Steps
22, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
GitHub
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own GitHub account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.