# GitHub webhook-based n8n workflow import template: n8n workflow

> Started by another system calling it, and works across GitHub. 9 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/github-webhook-based-n8n-workflow-import-template (Millionrounds; every figure on the page links to its filing or article)

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

# GitHub webhook-based n8n workflow import template

Started by another system calling it, and works across GitHub. 9 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgithub-webhook-based-n8n-workflow-import-template)

**9 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Logic 3 Service 5

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

- 1 **Webhook** Webhook *Starts it*
- 2 **create workflows sub folder if not exist** Execute Command *Service*
- 3 **List files from specified repo root** Github *Service*
- 4 **Loop Over Files** Split In Batches *Logic*
- 5 **Call n8n import and cleanup folder** Execute Command *Service*
- 6 **If it is a json file** If *Logic*
- 7 **Download file** Github *Service*
- 8 **No Operation, do nothing** No Op *Logic*
- 9 **Store file locally** Read Write File *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 9, with 1 branch, 1 loop or waits
- **Size:** Medium: a working afternoon
- **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 another system calling it.

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?

Plan an afternoon. 9 steps is enough that you should read each one before running it.

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 9 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%2Fgithub-webhook-based-n8n-workflow-import-template)
- **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)

## Workflows like it

Also setup and learning, with the same services where possible, closest in size first.

- [**Build your own GitHub MCP server** 15 steps · GitHub](https://millionrounds.com/workflow/build-your-own-github-mcp-server)
- [**[n8n v^1.37.3] GitHub backup of workflows and credentials** 20 steps · GitHub](https://millionrounds.com/workflow/n8n-v-1-37-3-github-backup-of-workflows-and-credentials)
- [**INST - the n8n installer: deploy workflows with GitHub** 22 steps · GitHub](https://millionrounds.com/workflow/inst-the-n8n-installer-deploy-workflows-with-github)
- [**[n8n v^0.221.2] GitHub backup of workflows and credentials** 26 steps · GitHub](https://millionrounds.com/workflow/n8n-v-0-221-2-github-backup-of-workflows-and-credentials)
- [**Back up and restore n8n workflows and credentials with GitHub** 41 steps · FTP, GitHub](https://millionrounds.com/workflow/back-up-and-restore-n8n-workflows-and-credentials-with-githu)
