Automation library · Alerts and monitoring

Automated workflow backups to GitHub with Slack

Started by an event in a connected app, and works across GitHub and Slack. 22 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large

22 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 1Logic 12Service 9

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

  1. 1Click me to triggerManual triggerStarts it
  2. 2Define Local VariablesSetLogic
  3. 3n8nN8nService
  4. 4Get all workflows on GitHubGithubService
  5. 5Find new workflowsMergeLogic
  6. 6Find updated workflowsMergeLogic
  7. 7Get content for each workflowGithubService
  8. 8Wait until branch created1MergeLogic
  9. 9Wait for finishedMergeLogic
  10. 10Wait until branch createdMergeLogic
  11. 11Base64decode workflow contentSetLogic
  12. 12Filter empty dataFilterLogic
  13. 13If there are any changes in workflowsIfLogic
  14. 14Filter empty data1FilterLogic
  15. 15Create new commit to add new workflowGithubService
  16. 16Get latest commit SHA on main via GitHub APIHttp RequestService
  17. 17No Operation, do nothingNo OpLogic
  18. 18Create new commit to update changed workflowGithubService
  19. 19Wait for GitHub create/edit file finishedMergeLogic
  20. 20Create new branch via GitHub APIHttp RequestService
  21. 21Create new PR via GitHub APIHttp RequestService
  22. 22SlackSlackService

How it's built

Starts on
An event in a connected app
Steps
22, with 1 branch
Size
Large: read it before trusting it with anything live
Connects to
GitHub, Slack
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

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

What starts it?

It starts on an event in a connected app.

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.