Automation library · Documents and files

Backup n8n workflows to GitHub with Discord

Started by a clock, and works across Discord and GitHub. 27 steps, 2 branches, 4 loops or waits: large, and worth reading before you trust it with anything live.

Large

27 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
4Loops or waits
2Services it connects to

The flow

Starts it 3Logic 15Service 9

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

  1. 1On clicking 'execute'Manual triggerStarts it
  2. 2Execute Workflow TriggerExecute Workflow triggerStarts it
  3. 3Schedule TriggerSchedule triggerStarts it
  4. 4Starting MessageDiscordService
  5. 5ConfigSetLogic
  6. 6n8nN8nService
  7. 7Merge ItemsMergeLogic
  8. 8Get file dataGithubService
  9. 9Loop Over ItemsSplit In BatchesLogic
  10. 10verifyTheDifferenceCodeLogic
  11. 11If file too largeIfLogic
  12. 12Wait1WaitLogic
  13. 13Execute WorkflowExecute WorkflowLogic
  14. 14Create sub pathSetLogic
  15. 15Get fileGithubService
  16. 16Completed NotificationDiscordService
  17. 17Wait2WaitLogic
  18. 18WaitWaitLogic
  19. 19SwitchSwitchLogic
  20. 20Inform Success FlowsDiscordService
  21. 21Inform Failed FlowsDiscordService
  22. 22Same file - Do nothingNo OpLogic
  23. 23File is differentNo OpLogic
  24. 24File is newNo OpLogic
  25. 25ReturnSetLogic
  26. 26Edit existing fileGithubService
  27. 27Create new fileGithubService

How it's built

Starts on
A clock
Steps
27, with 2 branches, 4 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Discord, GitHub
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on a clock.

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 27 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 27 steps before you point it at anything that matters.