AutomationFlowsWeb Scraping › Auto Update N8n to Latest Version with Coolify

Auto Update N8n to Latest Version with Coolify

ByHaqi Ramadhani @gemboran on n8n.io

Automatically detect new n8n releases (stable or beta) from GitHub, update Coolify environment variables, and trigger deployments.

Cron / scheduled trigger★★★★☆ complexity9 nodesHTTP Request
Web Scraping Trigger: Cron / scheduled Nodes: 9 Complexity: ★★★★☆ Added:

This workflow corresponds to n8n.io template #4360 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "35e69169-c5c2-49c8-beef-6ea6d0edc6bf",
      "name": "Get Release",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        620,
        -120
      ],
      "parameters": {
        "url": "https://api.github.com/repos/n8n-io/n8n/releases/latest",
        "options": {},
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "per_page",
              "value": "10"
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "00cfe0a8-d757-4980-a3d6-cf190c740a25",
      "name": "Update ENV",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1060,
        -220
      ],
      "parameters": {
        "url": "=https://console.buatan.id/api/v1/applications/{{ 'm8ccg8k44coogsk84swk8kgs' }}/envs",
        "method": "PATCH",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "key",
              "value": "N8N_VERSION"
            },
            {
              "name": "value",
              "value": "={{ $json.name.split('@').last() }}"
            },
            {
              "name": "is_preview",
              "value": "={{ false }}"
            },
            {
              "name": "is_build_time",
              "value": "={{ true }}"
            },
            {
              "name": "is_literal",
              "value": "={{ false }}"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "name": "<your credential>"
        },
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "43ed4660-01ca-456f-b161-475a41f5cedc",
      "name": "Deploy",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        -220
      ],
      "parameters": {
        "url": "=https://console.buatan.id/api/v1/deploy?uuid={{ 'm8ccg8k44coogsk84swk8kgs' }}&force=false",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "name": "<your credential>"
        },
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "4373ef71-d47f-435e-81c6-39bd19c82fab",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        400,
        -320
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "14dc4b16-6592-41ca-a252-a82aa3abcaa4",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.prerelease }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "5a737954-5eed-44fb-9ce9-d5036667b431",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        620,
        -320
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8605cae6-3be8-4e79-9ab7-f1adbfe0cbd4",
      "name": "Remove Duplicates",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        840,
        -220
      ],
      "parameters": {
        "options": {},
        "operation": "removeItemsSeenInPreviousExecutions",
        "dedupeValue": "={{ $json.name }}"
      },
      "typeVersion": 2
    },
    {
      "id": "9a244465-1b0a-423c-8345-695e1b79a371",
      "name": "Get Releases",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        180,
        -320
      ],
      "parameters": {
        "url": "https://api.github.com/repos/n8n-io/n8n/releases",
        "options": {},
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "per_page",
              "value": "10"
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "id": "ee7f6381-80a2-40c9-adf5-6d9b12ccf4bc",
      "name": "Auto Update Latest Release",
      "type": "n8n-nodes-base.scheduleTrigger",
      "disabled": true,
      "position": [
        400,
        -120
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours"
            }
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 1.2
    },
    {
      "id": "822e9e48-cbc2-40f0-b54f-91b873146a82",
      "name": "Auto Update Beta Release",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -40,
        -320
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "notesInFlow": true,
      "typeVersion": 1.2
    }
  ],
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deploy": {
      "main": [
        []
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update ENV": {
      "main": [
        [
          {
            "node": "Deploy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Release": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Releases": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Update ENV",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Auto Update Beta Release": {
      "main": [
        [
          {
            "node": "Get Releases",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Auto Update Latest Release": {
      "main": [
        [
          {
            "node": "Get Release",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Automatically detect new n8n releases (stable or beta) from GitHub, update Coolify environment variables, and trigger deployments.

Source: https://n8n.io/workflows/4360/ — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

As n8n instances scale, teams often lose track of sub-workflows—who uses them, where they are referenced, and whether they can be safely updated. This leads to inefficiencies like unnecessary copies o

HTTP Request, n8n, N8N Trigger +1
Web Scraping

This workflow is an improvement of this workflow by Greg Brzezinka.

HTTP Request, Email Send, XML +1
Web Scraping

N8N-Workflow-Github-Manager. Uses github, httpRequest, n8n. Scheduled trigger; 38 nodes.

GitHub, HTTP Request, n8n
Web Scraping

This workflow uses KlickTipp community nodes, available for self-hosted n8n instances only.

N8N Nodes Klicktipp, Salesforce, Salesforce Trigger +1
Web Scraping

This workflow acts as an automated engagement bot. It sends a Direct Message (DM) with a link or resource to any follower who replies to your post with a specific target keyword.

HTTP Request