N8N-Github Backup Workflow does NOT store Names of FLows

The Auto Backup N8N to Github workflow that I have here is pretty straight forward. The only problem is that it stores the ID as the name but I actually want to find a way to get the actual workflow name. Any way to solve that?

Information on your n8n setup

  • n8n version: 1.94
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker GCP
  • Operating system: Windows10

In the Create new file Github node, you’re using the id for the filepath. Try and set this to the name of the workflow which wouldve been returned from the n8n node

Yes but not only this node needs to change the name.

In the previous workflow it also using the workflow_id.json to check weather the workflow is already exists or not.

So it’s kind of all github nodes needs to change to workflow_name.json

and needs to check if it still working.

Otherwise it will create new files every time and it will look messy in Github repository.

If you dont want to struggle too much, you can steal my workflow for backups. Just replace the gitlab nodes with github and it should work:

Update the Globals node with the correct repo values

The repo files will look like this:

And commits like this: