{
  "name": "Safely update n8n with version checks and Telegram notifications",
  "nodes": [
    {
      "id": "bd03a0fb-1889-43c0-87e9-2c1c8cf385e5",
      "name": "Get Latest Version2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        416,
        1072
      ]
    },
    {
      "id": "67211dd4-b40e-43f1-bc72-8049c1bdd848",
      "name": "Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        864,
        992
      ]
    },
    {
      "id": "e519cb69-b1b4-4468-8fb8-aeb2fccf1299",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        640,
        992
      ]
    },
    {
      "id": "f87d5991-4af7-4e7a-8a29-ea0f684c636b",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        1088,
        992
      ]
    },
    {
      "id": "92fdc664-865b-4565-a0b7-818493c8dafd",
      "name": "Function Check Running1",
      "type": "n8n-nodes-base.function",
      "position": [
        1536,
        1088
      ]
    },
    {
      "id": "2c30be63-22df-46a4-b070-857812eb47a4",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2336,
        944
      ]
    },
    {
      "id": "5f29278e-276a-4be5-aba7-8c41c9033acc",
      "name": "Send a text message5",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1312,
        1360
      ]
    },
    {
      "id": "86551569-28d4-49fa-b7ca-044a5f967f3a",
      "name": "Send a text message6",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1312,
        912
      ]
    },
    {
      "id": "82f97eb4-2de3-4cd8-bb08-3ac87cb51a4d",
      "name": "Schedule Trigger1",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        64,
        912
      ]
    },
    {
      "id": "286f3317-7e32-48b5-985d-a055c0f5e317",
      "name": "If3",
      "type": "n8n-nodes-base.if",
      "position": [
        1744,
        1088
      ]
    },
    {
      "id": "593857b7-c1e4-4bb2-a072-0305086003b7",
      "name": "Get many executions1",
      "type": "n8n-nodes-base.n8n",
      "position": [
        1312,
        1088
      ]
    },
    {
      "id": "344e9678-d3b0-4e61-b9ca-aa52f4da8e39",
      "name": "n8n Trigger1",
      "type": "n8n-nodes-base.n8nTrigger",
      "position": [
        64,
        1072
      ]
    },
    {
      "id": "5a76766d-022e-43d8-a681-d6cbf2e299fb",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        2112,
        1152
      ]
    },
    {
      "id": "10cb80fe-d1ac-4d24-8a57-6e5b575e0267",
      "name": "Execute a command2",
      "type": "n8n-nodes-base.ssh",
      "position": [
        416,
        912
      ]
    },
    {
      "id": "cc4a3b9f-3b88-4f7c-bb97-8a367726d154",
      "name": "Execute a command3",
      "type": "n8n-nodes-base.ssh",
      "position": [
        2336,
        1136
      ]
    }
  ],
  "connections": {
    "If1": {
      "main": [
        [
          {
            "node": "Send a text message6",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get many executions1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a text message5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If3": {
      "main": [
        [
          {
            "node": "Execute a command3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code1": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Get many executions1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "n8n Trigger1": {
      "main": [
        [
          {
            "node": "Execute a command2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Latest Version2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger1": {
      "main": [
        [
          {
            "node": "Execute a command2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Latest Version2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute a command2": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Latest Version2": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get many executions1": {
      "main": [
        [
          {
            "node": "Function Check Running1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Function Check Running1": {
      "main": [
        [
          {
            "node": "If3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}