# Back up your n8n workflows to GitHub with Slack: n8n workflow

> Started by a clock, and works across GitHub and Slack. 23 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Source: https://millionrounds.com/workflow/back-up-your-n8n-workflows-to-github-with-slack (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Alerts and monitoring](https://millionrounds.com/workflows?category=Alerts+and+monitoring#library)

# Back up your n8n workflows to GitHub with Slack

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

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fback-up-your-n8n-workflows-to-github-with-slack)

**23 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 3 Logic 12 Service 8

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

- 1 **On clicking 'execute'** Manual trigger *Starts it*
- 2 **Execute Workflow Trigger** Execute Workflow trigger *Starts it*
- 3 **Schedule Trigger** Schedule trigger *Starts it*
- 4 **Starting Message** Slack *Service*
- 5 **Config** Set *Logic*
- 6 **n8n** N8n *Service*
- 7 **Get file data** Github *Service*
- 8 **Merge Items** Merge *Logic*
- 9 **Loop Over Items** Split In Batches *Logic*
- 10 **If file too large** If *Logic*
- 11 **isDiffOrNew** Code *Logic*
- 12 **Completed Notification** Slack *Service*
- 13 **Execute Workflow** Execute Workflow *Logic*
- 14 **Get File** Http Request *Service*
- 15 **Create sub path** Set *Logic*
- 16 **Failed Flows** Slack *Service*
- 17 **Check Status** Switch *Logic*
- 18 **Same file - Do nothing** No Op *Logic*
- 19 **File is different** No Op *Logic*
- 20 **File is new** No Op *Logic*
- 21 **Return** Set *Logic*
- 22 **Edit existing file** Github *Service*
- 23 **Create new file** Github *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 23, with 2 branches, 1 loop or waits
- **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 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 23 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 23 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fback-up-your-n8n-workflows-to-github-with-slack)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[GitHub](https://millionrounds.com/workflows?service=GitHub#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also alerts and monitoring, with the same services where possible, closest in size first.

- [**Analyze contract risk from PDFs with OpenAI and Supabase** 23 steps · Gmail, Slack](https://millionrounds.com/workflow/analyze-contract-risk-from-pdfs-with-openai-and-supabase)
- [**Build an event-driven pub/sub bus with HTTP and Slack** 23 steps · Slack](https://millionrounds.com/workflow/build-an-event-driven-pub-sub-bus-with-http-and-slack)
- [**URL and IP lookups with Greynoise and VirusTotal** 23 steps · Gmail, Slack](https://millionrounds.com/workflow/url-and-ip-lookups-with-greynoise-and-virustotal)
- [**Monitor AI budgets and optimize costs with Claude and Slack** 23 steps · calls a model · Email, Slack](https://millionrounds.com/workflow/monitor-ai-budgets-and-optimize-costs-with-claude-and-slack)
- [**Monitor attack surface changes with OpenAI and Postgres** 23 steps · calls a model · Email, Postgres](https://millionrounds.com/workflow/monitor-attack-surface-changes-with-openai-and-postgres)
- [**AI-Powered WhatsApp Business Assistant with Claude** 24 steps · Google Sheets, Slack](https://millionrounds.com/workflow/ai-powered-whatsapp-business-assistant-with-claude)
