{
  "openruna_format": "flow-graph-v1",
  "title": "[OPS] Restore workflows from GitHub to n8n",
  "slug": "ops-restore-workflows-from-github-to-n8n",
  "source_filename": "1988_GitHub_Manual_Automate_Triggered.json",
  "nodes": [
    {
      "id": "On clicking 'execute'",
      "name": "On clicking 'execute'",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Globals",
      "name": "Globals",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Workflow name already exists",
      "name": "Workflow name already exists",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "If workflow already exists",
      "name": "If workflow already exists",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Set n8n existing workflows names",
      "name": "Set n8n existing workflows names",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "GitHub - get all files",
      "name": "GitHub - get all files",
      "integration": "github",
      "kind": "action"
    },
    {
      "id": "n8n - get all workflows",
      "name": "n8n - get all workflows",
      "integration": "n8n",
      "kind": "action"
    },
    {
      "id": "GitHub - get each file",
      "name": "GitHub - get each file",
      "integration": "github",
      "kind": "action"
    },
    {
      "id": "Set name and content",
      "name": "Set name and content",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "n8n - create workflow",
      "name": "n8n - create workflow",
      "integration": "n8n",
      "kind": "action"
    },
    {
      "id": "Merge globals and files",
      "name": "Merge globals and files",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Merge Github and n8n workflows - Keep only non existing workflows based on the name",
      "name": "Merge Github and n8n workflows - Keep only non existing workflows based on the name",
      "integration": "merge",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Globals",
      "to": "GitHub - get all files"
    },
    {
      "from": "Globals",
      "to": "Merge globals and files"
    },
    {
      "from": "Set name and content",
      "to": "Merge Github and n8n workflows - Keep only non existing workflows based on the name"
    },
    {
      "from": "On clicking 'execute'",
      "to": "Globals"
    },
    {
      "from": "On clicking 'execute'",
      "to": "n8n - get all workflows"
    },
    {
      "from": "GitHub - get all files",
      "to": "Merge globals and files"
    },
    {
      "from": "GitHub - get each file",
      "to": "Set name and content"
    },
    {
      "from": "Merge globals and files",
      "to": "GitHub - get each file"
    },
    {
      "from": "n8n - get all workflows",
      "to": "Set n8n existing workflows names"
    },
    {
      "from": "If workflow already exists",
      "to": "n8n - create workflow"
    },
    {
      "from": "If workflow already exists",
      "to": "Workflow name already exists"
    },
    {
      "from": "Set n8n existing workflows names",
      "to": "Merge Github and n8n workflows - Keep only non existing workflows based on the name"
    },
    {
      "from": "Merge Github and n8n workflows - Keep only non existing workflows based on the name",
      "to": "If workflow already exists"
    }
  ]
}