Utiliser l'API n8n pour comparer votre version de n8n avec la dernière version
Ceci est unDevOps, Multimodal AIworkflow d'automatisation du domainecontenant 9 nœuds.Utilise principalement des nœuds comme If, N8n, Code, Html, HttpRequest. Utiliser l'API n8n pour comparer votre version de n8n avec la dernière version
- •Peut nécessiter les informations d'identification d'authentification de l'API cible
Nœuds utilisés (9)
Catégorie
{
"meta": {
"instanceId": "ad0113c344ee237399e44e9f11798b05baeb83a6196d514a9ae9d2ad71c3b5c9"
},
"nodes": [
{
"id": "e70dcb2b-184f-4eb1-a9e3-69b0c583d411",
"name": "Note adhésive",
"type": "n8n-nodes-base.stickyNote",
"position": [
2128,
6544
],
"parameters": {
"color": 7,
"width": 1936,
"height": 928,
"content": "# 🔑 Test your n8n Version with HTTP Request\n\nThis workflow compares your **current n8n instance version** with the **latest release**. \nTo make it work, you need to set up your **n8n API credentials**.\n"
},
"typeVersion": 1
},
{
"id": "588b400f-76c4-40fa-a488-fa63cabb783e",
"name": "Note adhésive23",
"type": "n8n-nodes-base.stickyNote",
"position": [
1680,
6544
],
"parameters": {
"width": 400,
"height": 928,
"content": "\n\n## ⚙️ Setup Instructions\n\n### 1️⃣ Set Up n8n API Credentials\n1. In your **n8n instance** → go to **Admin Panel → API** \n2. Copy your **API Key** \n3. In **n8n → Credentials → New → n8n API** \n - Paste the API Key \n - Save it \n4. Attach this credential to the **n8n node** (`Set up your n8n credentials`) \n\n---\n\n## ✅ How It Works\n- **Get Most Recent n8n Version** → Fetches the latest release info from docs.n8n.io \n- **Extract Version + Clean Value** → Parses the version string \n- **Get your n8n version** → Reads the version of your own instance via API \n- **Compare** → Checks if your instance is up-to-date \n\n---\n\n## 📬 Contact\nNeed help setting up API credentials or running this workflow?\n\n- 📧 **robert@ynteractive.com** \n- 🔗 **[Robert Breen](https://www.linkedin.com/in/robert-breen-29429625/)** \n- 🌐 **[ynteractive.com](https://ynteractive.com)**\n"
},
"typeVersion": 1
},
{
"id": "9b890a79-1052-4bcc-a2d3-500e85ddb511",
"name": "Configurer vos identifiants n8n",
"type": "n8n-nodes-base.n8n",
"disabled": true,
"position": [
2432,
7264
],
"parameters": {
"options": {},
"resource": "execution",
"operation": "get",
"requestOptions": {}
},
"credentials": {
"n8nApi": {
"id": "fmmFU3Ale1HZvMIL",
"name": "n8n account 2"
}
},
"typeVersion": 1
},
{
"id": "3487da8d-0334-4a25-9fb2-c025677557d6",
"name": "Obtenir la version n8n la plus récente",
"type": "n8n-nodes-base.httpRequest",
"position": [
2656,
6832
],
"parameters": {
"url": "https://docs.n8n.io/release-notes/",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "4b4ae554-2376-4b2a-9a99-4815e532666d",
"name": "Obtenir votre version n8n",
"type": "n8n-nodes-base.httpRequest",
"position": [
3440,
6992
],
"parameters": {
"url": "https://yourn8nurl.app.n8n.cloud/rest/settings",
"options": {},
"authentication": "predefinedCredentialType",
"nodeCredentialType": "n8nApi"
},
"credentials": {
"n8nApi": {
"id": "fmmFU3Ale1HZvMIL",
"name": "n8n account 2"
}
},
"typeVersion": 4.2
},
{
"id": "71face2b-d555-41e9-ad80-0128d6b56278",
"name": "Extraire la version",
"type": "n8n-nodes-base.html",
"position": [
2944,
7120
],
"parameters": {
"options": {},
"operation": "extractHtmlContent",
"extractionValues": {
"values": [
{
"key": "versions",
"cssSelector": "h2:contains(\"n8n@\")"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "2b506d24-badc-4af6-8d40-27a7ec3336e8",
"name": "Nettoyer la valeur",
"type": "n8n-nodes-base.code",
"position": [
3184,
6816
],
"parameters": {
"jsCode": "// Strip \"n8n@\" prefix and trailing \"#\"\nconst raw = $json.versions || '';\nconst clean = raw.replace(/^n8n@/, '').replace(/#$/, '');\nreturn [{ version: clean }];\n"
},
"typeVersion": 2
},
{
"id": "4c7d9901-72b8-4e22-836e-525c24400729",
"name": "Tester votre version",
"type": "n8n-nodes-base.if",
"position": [
3696,
6832
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "060eee63-3c1d-485f-bbcd-4d8b59579771",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.data.versionCli }}",
"rightValue": "={{ $('Clean Value').item.json.version }}"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "eec0952b-c17b-4961-85d3-92146b64d488",
"name": "Note adhésive55",
"type": "n8n-nodes-base.stickyNote",
"position": [
2336,
7008
],
"parameters": {
"color": 3,
"width": 288,
"height": 448,
"content": "### 1️⃣ Set Up n8n API Credentials\n1. In your **n8n instance** → go to **Admin Panel → API** \n2. Copy your **API Key** \n3. In **n8n → Credentials → New → n8n API** \n - Paste the API Key \n - Save it \n4. Attach this credential to the **n8n node** (`Set up your n8n credentials`) \n"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"2b506d24-badc-4af6-8d40-27a7ec3336e8": {
"main": [
[
{
"node": "4b4ae554-2376-4b2a-9a99-4815e532666d",
"type": "main",
"index": 0
}
]
]
},
"71face2b-d555-41e9-ad80-0128d6b56278": {
"main": [
[
{
"node": "2b506d24-badc-4af6-8d40-27a7ec3336e8",
"type": "main",
"index": 0
}
]
]
},
"4b4ae554-2376-4b2a-9a99-4815e532666d": {
"main": [
[
{
"node": "4c7d9901-72b8-4e22-836e-525c24400729",
"type": "main",
"index": 0
}
]
]
},
"3487da8d-0334-4a25-9fb2-c025677557d6": {
"main": [
[
{
"node": "71face2b-d555-41e9-ad80-0128d6b56278",
"type": "main",
"index": 0
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Intermédiaire - DevOps, IA Multimodale
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
Robert Breen
@rbreenProfessional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.
Partager ce workflow