{
  "name": "Save your workflows into a Gitlab repository",
  "nodes": [
    {
      "id": "9800aaf1-f330-4898-8da7-e60667ab9597",
      "name": "When clicking \"Test Workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        880,
        360
      ]
    },
    {
      "id": "2772836c-7e75-4d99-a130-f249a3868843",
      "name": "Globals",
      "type": "n8n-nodes-base.set",
      "position": [
        1100,
        360
      ]
    },
    {
      "id": "21c87038-3b5f-4ff8-88f2-7dde7f92af17",
      "name": "Result",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1700,
        80
      ]
    },
    {
      "id": "ff6c0a0a-3a2e-4eb7-9eac-1b6986dee524",
      "name": "Current workflow",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1720,
        460
      ]
    },
    {
      "id": "d8e48d3c-6df9-4662-b06b-27572182c28d",
      "name": "Loop Over Workflows",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1500,
        360
      ]
    },
    {
      "id": "01d1d850-f0e9-4f7d-877a-78cbec050d6e",
      "name": "Get file",
      "type": "n8n-nodes-base.gitlab",
      "position": [
        1960,
        460
      ]
    },
    {
      "id": "1cc2e4b6-8143-4d11-8898-78521e2b0170",
      "name": "File status",
      "type": "n8n-nodes-base.code",
      "position": [
        2620,
        440
      ]
    },
    {
      "id": "8e428b8a-6ac3-47c6-aa53-7a461fcaab0c",
      "name": "Status error",
      "type": "n8n-nodes-base.set",
      "position": [
        3360,
        640
      ]
    },
    {
      "id": "9007c9ae-bac0-4c65-9d50-c63d3a20f49c",
      "name": "End Loop",
      "type": "n8n-nodes-base.noOp",
      "position": [
        3600,
        420
      ]
    },
    {
      "id": "ac768b04-fa1f-4cef-8c7c-61508bb46bfc",
      "name": "Create file",
      "type": "n8n-nodes-base.gitlab",
      "position": [
        3100,
        140
      ]
    },
    {
      "id": "17d32e40-56c1-46e1-b7a6-0438adf5069c",
      "name": "Extract From File",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        2180,
        360
      ]
    },
    {
      "id": "51a50508-bfe2-4a70-aa77-420c2f7d6ae1",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        2880,
        440
      ]
    },
    {
      "id": "4a71677b-2c35-40b3-a45c-320e0779a949",
      "name": "New file version",
      "type": "n8n-nodes-base.gitlab",
      "position": [
        3100,
        300
      ]
    },
    {
      "id": "a2d22bb4-ff42-41c5-8ef9-6214f114275e",
      "name": "Error output to normal output",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2180,
        560
      ]
    },
    {
      "id": "c1932cee-dcb4-4f32-8eff-7ded3558ba53",
      "name": "Status new",
      "type": "n8n-nodes-base.set",
      "position": [
        3360,
        120
      ]
    },
    {
      "id": "769cf25b-311a-4aaa-9eb8-5c9616f91beb",
      "name": "Status diff",
      "type": "n8n-nodes-base.set",
      "position": [
        3360,
        280
      ]
    },
    {
      "id": "3089818c-0020-4d13-864e-6f04b6ea9d91",
      "name": "Status same",
      "type": "n8n-nodes-base.set",
      "position": [
        3360,
        420
      ]
    },
    {
      "id": "7fcffb00-2177-49b9-b0ee-7ccec076814d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        160
      ],
      "parameters": {
        "width": 839.0943396226413,
        "height": 587.9245283018865,
        "content": "## Check file\nGet the file.\nUse error output as normal output.\nSome code to analyse the file and set a status."
      }
    },
    {
      "id": "1c0eff6a-e469-41bd-890c-76bc760a2b4e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2860,
        14
      ],
      "parameters": {
        "width": 720.3234501347711,
        "height": 806.2533692722375,
        "content": "## Save the data\nSave the data as new or edited file, ignored or note as error."
      }
    },
    {
      "id": "a02c50c9-fe6c-4c90-93ee-dc82b8fb3abe",
      "name": "Retrieve all workflows",
      "type": "n8n-nodes-base.n8n",
      "position": [
        1300,
        360
      ]
    },
    {
      "id": "ee96caf2-bf4d-4d10-a6bc-0a30ec9c9db8",
      "name": "Save each version in a different field",
      "type": "n8n-nodes-base.set",
      "position": [
        2400,
        360
      ]
    }
  ],
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "Create file",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Status same",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "New file version",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Status error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Globals": {
      "main": [
        [
          {
            "node": "Retrieve all workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "End Loop": {
      "main": [
        [
          {
            "node": "Loop Over Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get file": {
      "main": [
        [
          {
            "node": "Extract From File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Error output to normal output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Status new": {
      "main": [
        [
          {
            "node": "End Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create file": {
      "main": [
        [
          {
            "node": "Status new",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Status error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "File status": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Status diff": {
      "main": [
        [
          {
            "node": "End Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Status same": {
      "main": [
        [
          {
            "node": "End Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Status error": {
      "main": [
        [
          {
            "node": "End Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Current workflow": {
      "main": [
        [
          {
            "node": "Get file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New file version": {
      "main": [
        [
          {
            "node": "Status diff",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Status error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract From File": {
      "main": [
        [
          {
            "node": "Save each version in a different field",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Workflows": {
      "main": [
        [
          {
            "node": "Result",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Current workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve all workflows": {
      "main": [
        [
          {
            "node": "Loop Over Workflows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error output to normal output": {
      "main": [
        [
          {
            "node": "File status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Test Workflow\"": {
      "main": [
        [
          {
            "node": "Globals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save each version in a different field": {
      "main": [
        [
          {
            "node": "File status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}