Restore backed up workflows from GitHub to your n8n workspace.
This workflow was inspired by this one that lets you back up your n8n workflows to GitHub.
It will let you restore your backed up workflows in your workspace, without creating duplicates.
In case of issue with your instance, it will save you a lot of time to restore them.
How it works
- It retrieves the workflows saved in a GitHub repository.
- Then compares these saved workflows with the ones in your n8n workspace based on the name.
- It will only create them if they don't already exist.
Set up steps
- Open the "Global" node and set your own information (see Configuration below)
- Click on "Test workflow"
- It will run through all the workflows in the GitHub repository, check if the name doesn't already exist in your workspace and, in this case, create it.
Configuration
- repo.owner: your GitHub owner name
- repo.name: your GitHub repository name
- repo.path: the path within the GitHub repository