Update Gitea n8n backup.json

This commit is contained in:
2001-01-01 00:00:00 +00:00
parent 351c57f750
commit 1a7c242d0b

View File

@@ -1,9 +1,9 @@
{ {
"updatedAt": "2025-11-23T08:57:23.000Z", "updatedAt": "2026-02-07T17:36:53.545Z",
"createdAt": "2025-11-23T08:34:12.767Z", "createdAt": "2026-02-07T17:36:53.545Z",
"id": "fsaojBpJsioS4FYe", "id": "L6OfcqzxnGM8NxfHm5oJk",
"name": "Gitea n8n backup", "name": "Gitea n8n backup",
"active": true, "active": false,
"isArchived": false, "isArchived": false,
"nodes": [ "nodes": [
{ {
@@ -26,12 +26,12 @@
}, },
"options": {} "options": {}
}, },
"id": "b6997dbf-2f79-4c4f-a6cf-6dbb76c547cd", "id": "6d3e9933-85ce-4a22-836f-e7a59c4fb038",
"name": "Globals", "name": "Globals",
"type": "n8n-nodes-base.set", "type": "n8n-nodes-base.set",
"position": [ "position": [
464, 112,
96 64
], ],
"typeVersion": 1 "typeVersion": 1
}, },
@@ -40,18 +40,18 @@
"filters": {}, "filters": {},
"requestOptions": {} "requestOptions": {}
}, },
"id": "d6b7dbc9-8f6c-4922-a725-6f5e2cbf5e50", "id": "d6acbeff-552a-4779-a94c-c24088f728e5",
"name": "n8n", "name": "n8n",
"type": "n8n-nodes-base.n8n", "type": "n8n-nodes-base.n8n",
"position": [ "position": [
704, 352,
96 64
], ],
"typeVersion": 1, "typeVersion": 1,
"credentials": { "credentials": {
"n8nApi": { "n8nApi": {
"id": "MzXVd9Km6bhxsIq5", "id": "sRsWD6qTeQzLCxKg",
"name": "n8n-workspace-backup" "name": "n8n-workspace-backup-token"
} }
} }
}, },
@@ -63,12 +63,12 @@
] ]
} }
}, },
"id": "312ab6a1-64e1-4b63-b94b-87619a7eb184", "id": "1dcaab50-e7c2-4bfc-8464-fd5cb0bb5ed8",
"name": "Schedule Trigger", "name": "Schedule Trigger",
"type": "n8n-nodes-base.scheduleTrigger", "type": "n8n-nodes-base.scheduleTrigger",
"position": [ "position": [
240, -112,
96 64
], ],
"typeVersion": 1.2 "typeVersion": 1.2
}, },
@@ -77,12 +77,12 @@
"content": "Workflow changes committed to the repository", "content": "Workflow changes committed to the repository",
"height": 80 "height": 80
}, },
"id": "5a6a4dd1-d86b-43f2-80df-4b430615f4e9", "id": "b809c16b-7132-40d3-81a4-e0a1409efb99",
"name": "Sticky Note", "name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote", "type": "n8n-nodes-base.stickyNote",
"position": [ "position": [
2480, 2128,
160 128
], ],
"typeVersion": 1 "typeVersion": 1
}, },
@@ -91,12 +91,12 @@
"content": "Check if there are any changes in the workflow", "content": "Check if there are any changes in the workflow",
"height": 80 "height": 80
}, },
"id": "f342c5df-d6a3-4997-a94e-f6affd4e929f", "id": "92c0bba6-a340-404f-a0c7-dd4d18c38bee",
"name": "Sticky Note1", "name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote", "type": "n8n-nodes-base.stickyNote",
"position": [ "position": [
2112, 1760,
32 0
], ],
"typeVersion": 1 "typeVersion": 1
}, },
@@ -105,12 +105,12 @@
"content": "Create a new file for the workflow", "content": "Create a new file for the workflow",
"height": 80 "height": 80
}, },
"id": "0f93a72a-faf6-4177-bffa-7d4088c0bce7", "id": "6966d7f4-9081-4fca-950c-ad1e8e5362b0",
"name": "Sticky Note2", "name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote", "type": "n8n-nodes-base.stickyNote",
"position": [ "position": [
1664, 1312,
432 400
], ],
"typeVersion": 1 "typeVersion": 1
}, },
@@ -119,12 +119,12 @@
"content": "Check if file exists in the repository", "content": "Check if file exists in the repository",
"height": 80 "height": 80
}, },
"id": "4f89f7e1-90c6-4b2a-b928-5839ba0e03e3", "id": "582690bc-7130-4f4b-b939-439aa4545b70",
"name": "Sticky Note3", "name": "Sticky Note3",
"type": "n8n-nodes-base.stickyNote", "type": "n8n-nodes-base.stickyNote",
"position": [ "position": [
1152, 800,
64 32
], ],
"typeVersion": 1 "typeVersion": 1
}, },
@@ -133,12 +133,12 @@
"content": "Get all workflows", "content": "Get all workflows",
"height": 80 "height": 80
}, },
"id": "2939ebe5-a9ce-4103-b44e-336ae2ac5903", "id": "2409f352-9eb1-4582-bd4f-bac52970c6f0",
"name": "Sticky Note5", "name": "Sticky Note5",
"type": "n8n-nodes-base.stickyNote", "type": "n8n-nodes-base.stickyNote",
"position": [ "position": [
640, 288,
32 0
], ],
"typeVersion": 1 "typeVersion": 1
}, },
@@ -147,12 +147,12 @@
"content": "Set variables", "content": "Set variables",
"height": 80 "height": 80
}, },
"id": "1fa6cc74-f22d-4106-84dc-36478abb400d", "id": "4f08fe76-c648-48ec-aa9e-7f777118c553",
"name": "Sticky Note6", "name": "Sticky Note6",
"type": "n8n-nodes-base.stickyNote", "type": "n8n-nodes-base.stickyNote",
"position": [ "position": [
352, 0,
32 0
], ],
"typeVersion": 1 "typeVersion": 1
}, },
@@ -170,12 +170,12 @@
}, },
"options": {} "options": {}
}, },
"id": "b22a1647-7c9f-4dc2-9f9c-44461dece4fc", "id": "3f35b734-cc0e-455b-9b67-bfbe43bae391",
"name": "SetDataUpdateNode", "name": "SetDataUpdateNode",
"type": "n8n-nodes-base.set", "type": "n8n-nodes-base.set",
"position": [ "position": [
1776, 1424,
96 64
], ],
"typeVersion": 3.4 "typeVersion": 3.4
}, },
@@ -193,12 +193,12 @@
}, },
"options": {} "options": {}
}, },
"id": "65a08a09-ee06-4e99-addb-4e94bf32caf2", "id": "230daded-655c-47f3-8e38-4be2497880d7",
"name": "SetDataCreateNode", "name": "SetDataCreateNode",
"type": "n8n-nodes-base.set", "type": "n8n-nodes-base.set",
"position": [ "position": [
1072, 720,
496 464
], ],
"typeVersion": 3.4 "typeVersion": 3.4
}, },
@@ -206,12 +206,12 @@
"parameters": { "parameters": {
"jsCode": "const results = [];\n\n// Wir iterieren über alle Items (besser als input_dict[0] im Python-Code)\nfor (const item of $input.all()) {\n \n // Zugriff auf die Daten: entspricht input_dict[0].get('json').get('item')\n const innerData = item.json.item;\n\n if (innerData) {\n // Schritt 1: JSON schön formatieren (Pretty Print)\n const jsonString = JSON.stringify(innerData, null, 4);\n\n // Schritt 2 & 3: String in Base64 umwandeln\n // Buffer ist in Node.js/n8n Standard\n const base64String = Buffer.from(jsonString, 'utf8').toString('base64');\n\n // Schritt 5: Rückgabeobjekt erstellen\n results.push({\n json: {\n item: base64String\n }\n });\n }\n}\n\nreturn results;" "jsCode": "const results = [];\n\n// Wir iterieren über alle Items (besser als input_dict[0] im Python-Code)\nfor (const item of $input.all()) {\n \n // Zugriff auf die Daten: entspricht input_dict[0].get('json').get('item')\n const innerData = item.json.item;\n\n if (innerData) {\n // Schritt 1: JSON schön formatieren (Pretty Print)\n const jsonString = JSON.stringify(innerData, null, 4);\n\n // Schritt 2 & 3: String in Base64 umwandeln\n // Buffer ist in Node.js/n8n Standard\n const base64String = Buffer.from(jsonString, 'utf8').toString('base64');\n\n // Schritt 5: Rückgabeobjekt erstellen\n results.push({\n json: {\n item: base64String\n }\n });\n }\n}\n\nreturn results;"
}, },
"id": "2d99bcb9-7de7-4db0-a2e3-976754d9034d", "id": "a4e8412f-e5c7-472e-8add-d1b15ca9bc5c",
"name": "Base64EncodeUpdate", "name": "Base64EncodeUpdate",
"type": "n8n-nodes-base.code", "type": "n8n-nodes-base.code",
"position": [ "position": [
2000, 1648,
96 64
], ],
"typeVersion": 2 "typeVersion": 2
}, },
@@ -219,12 +219,12 @@
"parameters": { "parameters": {
"jsCode": "// Wir erstellen ein Array für die Ergebnisse\nconst results = [];\n\n// Wir iterieren über alle eingehenden Items (n8n Best Practice)\n// Der Python Code hat nur das erste Item [0] genommen, was oft ein Fehler ist.\nfor (const item of $input.all()) {\n\n // \"item.json.item\" entspricht dem Pfad aus deinem Python-Code:\n // inner_data = input_dict[0].get('json').get('item')\n const innerData = item.json.item;\n\n if (innerData) {\n // Schritt 1: JSON \"pretty print\" (Formatieren)\n const jsonString = JSON.stringify(innerData, null, 4);\n\n // Schritt 2 & 3: String zu Base64 encodieren\n // Buffer ist nativ in Node.js verfügbar\n const base64String = Buffer.from(jsonString, 'utf8').toString('base64');\n\n // Schritt 4: Ergebnis zum Array hinzufügen\n results.push({\n json: {\n item: base64String\n }\n });\n } else {\n // Fallback, falls \"item\" leer ist\n results.push({\n json: {\n item: null,\n error: \"Keine Daten im Feld 'item' gefunden\"\n }\n });\n }\n}\n\nreturn results;" "jsCode": "// Wir erstellen ein Array für die Ergebnisse\nconst results = [];\n\n// Wir iterieren über alle eingehenden Items (n8n Best Practice)\n// Der Python Code hat nur das erste Item [0] genommen, was oft ein Fehler ist.\nfor (const item of $input.all()) {\n\n // \"item.json.item\" entspricht dem Pfad aus deinem Python-Code:\n // inner_data = input_dict[0].get('json').get('item')\n const innerData = item.json.item;\n\n if (innerData) {\n // Schritt 1: JSON \"pretty print\" (Formatieren)\n const jsonString = JSON.stringify(innerData, null, 4);\n\n // Schritt 2 & 3: String zu Base64 encodieren\n // Buffer ist nativ in Node.js verfügbar\n const base64String = Buffer.from(jsonString, 'utf8').toString('base64');\n\n // Schritt 4: Ergebnis zum Array hinzufügen\n results.push({\n json: {\n item: base64String\n }\n });\n } else {\n // Fallback, falls \"item\" leer ist\n results.push({\n json: {\n item: null,\n error: \"Keine Daten im Feld 'item' gefunden\"\n }\n });\n }\n}\n\nreturn results;"
}, },
"id": "6ff133d8-17bf-4872-92d4-6d9e734a04d5", "id": "04498688-c3f0-433e-b24e-46cf694bbc50",
"name": "Base64EncodeCreate", "name": "Base64EncodeCreate",
"type": "n8n-nodes-base.code", "type": "n8n-nodes-base.code",
"position": [ "position": [
1376, 1024,
496 464
], ],
"typeVersion": 2 "typeVersion": 2
}, },
@@ -255,12 +255,12 @@
"ignoreCase": false "ignoreCase": false
} }
}, },
"id": "c05cef97-1733-4676-9944-24c9bd8ddeca", "id": "3579f0de-413d-4bad-8217-55854cb6e01e",
"name": "Exist", "name": "Exist",
"type": "n8n-nodes-base.if", "type": "n8n-nodes-base.if",
"position": [ "position": [
1504, 1152,
112 80
], ],
"executeOnce": false, "executeOnce": false,
"typeVersion": 2.2, "typeVersion": 2.2,
@@ -290,12 +290,12 @@
}, },
"options": {} "options": {}
}, },
"id": "000af828-3eaf-4b9d-b212-4c69aa1976bc", "id": "115d3433-b8f1-4d81-b149-8bb822e997b1",
"name": "Changed", "name": "Changed",
"type": "n8n-nodes-base.if", "type": "n8n-nodes-base.if",
"position": [ "position": [
2224, 1872,
96 64
], ],
"typeVersion": 2.2 "typeVersion": 2.2
}, },
@@ -320,18 +320,18 @@
}, },
"options": {} "options": {}
}, },
"id": "f79dd651-3891-4e9b-b2e8-be5bfa1fe7eb", "id": "bf83c6dd-f3ee-49c9-b939-8e017352cc0e",
"name": "PutGitea", "name": "PutGitea",
"type": "n8n-nodes-base.httpRequest", "type": "n8n-nodes-base.httpRequest",
"position": [ "position": [
2560, 2208,
224 192
], ],
"typeVersion": 4.2, "typeVersion": 4.2,
"credentials": { "credentials": {
"httpHeaderAuth": { "httpHeaderAuth": {
"id": "NEnkbkj4tAvlTLD8", "id": "9rVued8FuUi6ySvN",
"name": "Header Auth account" "name": "gittea"
} }
} }
}, },
@@ -342,18 +342,18 @@
"genericAuthType": "httpHeaderAuth", "genericAuthType": "httpHeaderAuth",
"options": {} "options": {}
}, },
"id": "4424b8ad-143a-4d3d-b99d-dcee4f02a710", "id": "acc889b6-052e-413d-8506-dbf173bc73eb",
"name": "GetGitea", "name": "GetGitea",
"type": "n8n-nodes-base.httpRequest", "type": "n8n-nodes-base.httpRequest",
"position": [ "position": [
1232, 880,
112 80
], ],
"typeVersion": 4.2, "typeVersion": 4.2,
"credentials": { "credentials": {
"httpHeaderAuth": { "httpHeaderAuth": {
"id": "NEnkbkj4tAvlTLD8", "id": "9rVued8FuUi6ySvN",
"name": "Header Auth account" "name": "gittea"
} }
}, },
"onError": "continueRegularOutput" "onError": "continueRegularOutput"
@@ -375,18 +375,18 @@
}, },
"options": {} "options": {}
}, },
"id": "fc17d602-92e1-411b-8ba4-00f62046fd2b", "id": "ca4ddd25-e866-4d98-8d29-4e7786c3e323",
"name": "PostGitea", "name": "PostGitea",
"type": "n8n-nodes-base.httpRequest", "type": "n8n-nodes-base.httpRequest",
"position": [ "position": [
1776, 1424,
496 464
], ],
"typeVersion": 4.2, "typeVersion": 4.2,
"credentials": { "credentials": {
"httpHeaderAuth": { "httpHeaderAuth": {
"id": "NEnkbkj4tAvlTLD8", "id": "9rVued8FuUi6ySvN",
"name": "Header Auth account" "name": "gittea"
} }
} }
}, },
@@ -394,12 +394,12 @@
"parameters": { "parameters": {
"options": {} "options": {}
}, },
"id": "ef790cca-0082-408f-bed3-5abf0496082c", "id": "686ab844-a3f5-4048-927f-6aa5fce089b8",
"name": "ForEach", "name": "ForEach",
"type": "n8n-nodes-base.splitInBatches", "type": "n8n-nodes-base.splitInBatches",
"position": [ "position": [
912, 560,
96 64
], ],
"executeOnce": false, "executeOnce": false,
"typeVersion": 3 "typeVersion": 3
@@ -410,12 +410,12 @@
"height": 1620, "height": 1620,
"width": 560 "width": 560
}, },
"id": "5b242ecc-275e-4d70-861b-64d4b3fcdc82", "id": "5084834c-0509-4ca1-a781-8d02c4d6184b",
"name": "Sticky Note4", "name": "Sticky Note4",
"type": "n8n-nodes-base.stickyNote", "type": "n8n-nodes-base.stickyNote",
"position": [ "position": [
240, -112,
304 272
], ],
"typeVersion": 1 "typeVersion": 1
} }
@@ -581,27 +581,26 @@
} }
}, },
"settings": { "settings": {
"executionOrder": "v1" "executionOrder": "v1",
}, "availableInMCP": false
"staticData": {
"node:Schedule Trigger": {
"recurrenceRules": []
}
}, },
"staticData": null,
"meta": { "meta": {
"templateCredsSetupCompleted": true "templateCredsSetupCompleted": true
}, },
"pinData": {}, "pinData": {},
"versionId": "fd25c766-ce51-4dea-ac87-7d4d1e1f1319", "versionId": "b781d821-7e2c-474a-884f-06f6bc47d286",
"triggerCount": 1, "activeVersionId": null,
"triggerCount": 0,
"shared": [ "shared": [
{ {
"updatedAt": "2025-11-23T08:34:14.534Z", "updatedAt": "2026-02-07T17:36:53.546Z",
"createdAt": "2025-11-23T08:34:14.534Z", "createdAt": "2026-02-07T17:36:53.546Z",
"role": "workflow:owner", "role": "workflow:owner",
"workflowId": "fsaojBpJsioS4FYe", "workflowId": "L6OfcqzxnGM8NxfHm5oJk",
"projectId": "S4tmpzSj6JlGFOze" "projectId": "cSAaWNJydnksD5EB"
} }
], ],
"activeVersion": null,
"tags": [] "tags": []
} }