diff --git a/n8n-workflow.json b/n8n-workflow.json index 852e818..0d39911 100644 --- a/n8n-workflow.json +++ b/n8n-workflow.json @@ -246,6 +246,29 @@ "parameters": { "rules": { "values": [ + { + "id": "docker-error", + "conditions": { + "options": { + "caseSensitive": true, + "leftValue": "", + "typeValidation": "strict" + }, + "conditions": [ + { + "id": "count-negative", + "leftValue": "={{ $json.matchCount }}", + "rightValue": "0", + "operator": { + "type": "number", + "operation": "lt" + } + } + ], + "combinator": "and" + }, + "renameOutput": false + }, { "id": "no-match", "conditions": { @@ -443,6 +466,28 @@ "name": "Telegram API" } } + }, + { + "parameters": { + "resource": "message", + "operation": "sendMessage", + "chatId": "={{ $json.chatId }}", + "text": "={{ $json.text }}", + "additionalFields": { + "parse_mode": "HTML" + } + }, + "id": "telegram-send-docker-error", + "name": "Send Docker Error", + "type": "n8n-nodes-base.telegram", + "typeVersion": 1.2, + "position": [1780, 200], + "credentials": { + "telegramApi": { + "id": "telegram-credential", + "name": "Telegram API" + } + } } ], "connections": { @@ -574,6 +619,13 @@ }, "Check Match Count": { "main": [ + [ + { + "node": "Send Docker Error", + "type": "main", + "index": 0 + } + ], [ { "node": "Format No Match",