Automation library · Documents and files

Automated workflow backup with GitHub

Started by a clock, and works across GitHub and Telegram. 28 steps, 4 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

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

The flow

Starts it 1Logic 19Service 8

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

  1. 1Schedule TriggerSchedule triggerStarts it
  2. 2ConfigurationSetLogic
  3. 3Assert GitHub configIfLogic
  4. 4Get all workflowsN8nService
  5. 5List filesGithubService
  6. 6Stop on empty configStop And ErrorLogic
  7. 7Encode N8N workflowsCodeLogic
  8. 8Get filesGithubService
  9. 9MergeMergeLogic
  10. 10Extract workflow parametersCodeLogic
  11. 11Loop Over ItemsSplit In BatchesLogic
  12. 12Is Telegram configured?IfLogic
  13. 13Decide changesCodeLogic
  14. 14Build summary arraysCodeLogic
  15. 15RouterSwitchLogic
  16. 16Anything changed?IfLogic
  17. 17Delete old fileGithubService
  18. 18Merge after delete (rename)MergeLogic
  19. 19Update file content and commitGithubService
  20. 20Merge after updateMergeLogic
  21. 21Create new fileGithubService
  22. 22Merge after createMergeLogic
  23. 23No Operation, do nothingNo OpLogic
  24. 24Stop and ErrorStop And ErrorLogic
  25. 25Render summaryCodeLogic
  26. 26Merge after create (rename)MergeLogic
  27. 27Create new file (rename)GithubService
  28. 28Send a messageTelegramService

How it's built

Starts on
A clock
Steps
28, with 4 branches, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
GitHub, Telegram
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account, plus your own GitHub and Telegram 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 28 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 28 steps before you point it at anything that matters.