Update Gitea n8n backup.json
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"updatedAt": "2025-11-23T08:57:23.000Z",
|
||||
"createdAt": "2025-11-23T08:34:12.767Z",
|
||||
"id": "fsaojBpJsioS4FYe",
|
||||
"updatedAt": "2026-02-07T17:36:53.545Z",
|
||||
"createdAt": "2026-02-07T17:36:53.545Z",
|
||||
"id": "L6OfcqzxnGM8NxfHm5oJk",
|
||||
"name": "Gitea n8n backup",
|
||||
"active": true,
|
||||
"active": false,
|
||||
"isArchived": false,
|
||||
"nodes": [
|
||||
{
|
||||
@@ -26,12 +26,12 @@
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "b6997dbf-2f79-4c4f-a6cf-6dbb76c547cd",
|
||||
"id": "6d3e9933-85ce-4a22-836f-e7a59c4fb038",
|
||||
"name": "Globals",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"position": [
|
||||
464,
|
||||
96
|
||||
112,
|
||||
64
|
||||
],
|
||||
"typeVersion": 1
|
||||
},
|
||||
@@ -40,18 +40,18 @@
|
||||
"filters": {},
|
||||
"requestOptions": {}
|
||||
},
|
||||
"id": "d6b7dbc9-8f6c-4922-a725-6f5e2cbf5e50",
|
||||
"id": "d6acbeff-552a-4779-a94c-c24088f728e5",
|
||||
"name": "n8n",
|
||||
"type": "n8n-nodes-base.n8n",
|
||||
"position": [
|
||||
704,
|
||||
96
|
||||
352,
|
||||
64
|
||||
],
|
||||
"typeVersion": 1,
|
||||
"credentials": {
|
||||
"n8nApi": {
|
||||
"id": "MzXVd9Km6bhxsIq5",
|
||||
"name": "n8n-workspace-backup"
|
||||
"id": "sRsWD6qTeQzLCxKg",
|
||||
"name": "n8n-workspace-backup-token"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -63,12 +63,12 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "312ab6a1-64e1-4b63-b94b-87619a7eb184",
|
||||
"id": "1dcaab50-e7c2-4bfc-8464-fd5cb0bb5ed8",
|
||||
"name": "Schedule Trigger",
|
||||
"type": "n8n-nodes-base.scheduleTrigger",
|
||||
"position": [
|
||||
240,
|
||||
96
|
||||
-112,
|
||||
64
|
||||
],
|
||||
"typeVersion": 1.2
|
||||
},
|
||||
@@ -77,12 +77,12 @@
|
||||
"content": "Workflow changes committed to the repository",
|
||||
"height": 80
|
||||
},
|
||||
"id": "5a6a4dd1-d86b-43f2-80df-4b430615f4e9",
|
||||
"id": "b809c16b-7132-40d3-81a4-e0a1409efb99",
|
||||
"name": "Sticky Note",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
2480,
|
||||
160
|
||||
2128,
|
||||
128
|
||||
],
|
||||
"typeVersion": 1
|
||||
},
|
||||
@@ -91,12 +91,12 @@
|
||||
"content": "Check if there are any changes in the workflow",
|
||||
"height": 80
|
||||
},
|
||||
"id": "f342c5df-d6a3-4997-a94e-f6affd4e929f",
|
||||
"id": "92c0bba6-a340-404f-a0c7-dd4d18c38bee",
|
||||
"name": "Sticky Note1",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
2112,
|
||||
32
|
||||
1760,
|
||||
0
|
||||
],
|
||||
"typeVersion": 1
|
||||
},
|
||||
@@ -105,12 +105,12 @@
|
||||
"content": "Create a new file for the workflow",
|
||||
"height": 80
|
||||
},
|
||||
"id": "0f93a72a-faf6-4177-bffa-7d4088c0bce7",
|
||||
"id": "6966d7f4-9081-4fca-950c-ad1e8e5362b0",
|
||||
"name": "Sticky Note2",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1664,
|
||||
432
|
||||
1312,
|
||||
400
|
||||
],
|
||||
"typeVersion": 1
|
||||
},
|
||||
@@ -119,12 +119,12 @@
|
||||
"content": "Check if file exists in the repository",
|
||||
"height": 80
|
||||
},
|
||||
"id": "4f89f7e1-90c6-4b2a-b928-5839ba0e03e3",
|
||||
"id": "582690bc-7130-4f4b-b939-439aa4545b70",
|
||||
"name": "Sticky Note3",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
1152,
|
||||
64
|
||||
800,
|
||||
32
|
||||
],
|
||||
"typeVersion": 1
|
||||
},
|
||||
@@ -133,12 +133,12 @@
|
||||
"content": "Get all workflows",
|
||||
"height": 80
|
||||
},
|
||||
"id": "2939ebe5-a9ce-4103-b44e-336ae2ac5903",
|
||||
"id": "2409f352-9eb1-4582-bd4f-bac52970c6f0",
|
||||
"name": "Sticky Note5",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
640,
|
||||
32
|
||||
288,
|
||||
0
|
||||
],
|
||||
"typeVersion": 1
|
||||
},
|
||||
@@ -147,12 +147,12 @@
|
||||
"content": "Set variables",
|
||||
"height": 80
|
||||
},
|
||||
"id": "1fa6cc74-f22d-4106-84dc-36478abb400d",
|
||||
"id": "4f08fe76-c648-48ec-aa9e-7f777118c553",
|
||||
"name": "Sticky Note6",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
352,
|
||||
32
|
||||
0,
|
||||
0
|
||||
],
|
||||
"typeVersion": 1
|
||||
},
|
||||
@@ -170,12 +170,12 @@
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "b22a1647-7c9f-4dc2-9f9c-44461dece4fc",
|
||||
"id": "3f35b734-cc0e-455b-9b67-bfbe43bae391",
|
||||
"name": "SetDataUpdateNode",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"position": [
|
||||
1776,
|
||||
96
|
||||
1424,
|
||||
64
|
||||
],
|
||||
"typeVersion": 3.4
|
||||
},
|
||||
@@ -193,12 +193,12 @@
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "65a08a09-ee06-4e99-addb-4e94bf32caf2",
|
||||
"id": "230daded-655c-47f3-8e38-4be2497880d7",
|
||||
"name": "SetDataCreateNode",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"position": [
|
||||
1072,
|
||||
496
|
||||
720,
|
||||
464
|
||||
],
|
||||
"typeVersion": 3.4
|
||||
},
|
||||
@@ -206,12 +206,12 @@
|
||||
"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;"
|
||||
},
|
||||
"id": "2d99bcb9-7de7-4db0-a2e3-976754d9034d",
|
||||
"id": "a4e8412f-e5c7-472e-8add-d1b15ca9bc5c",
|
||||
"name": "Base64EncodeUpdate",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"position": [
|
||||
2000,
|
||||
96
|
||||
1648,
|
||||
64
|
||||
],
|
||||
"typeVersion": 2
|
||||
},
|
||||
@@ -219,12 +219,12 @@
|
||||
"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;"
|
||||
},
|
||||
"id": "6ff133d8-17bf-4872-92d4-6d9e734a04d5",
|
||||
"id": "04498688-c3f0-433e-b24e-46cf694bbc50",
|
||||
"name": "Base64EncodeCreate",
|
||||
"type": "n8n-nodes-base.code",
|
||||
"position": [
|
||||
1376,
|
||||
496
|
||||
1024,
|
||||
464
|
||||
],
|
||||
"typeVersion": 2
|
||||
},
|
||||
@@ -255,12 +255,12 @@
|
||||
"ignoreCase": false
|
||||
}
|
||||
},
|
||||
"id": "c05cef97-1733-4676-9944-24c9bd8ddeca",
|
||||
"id": "3579f0de-413d-4bad-8217-55854cb6e01e",
|
||||
"name": "Exist",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"position": [
|
||||
1504,
|
||||
112
|
||||
1152,
|
||||
80
|
||||
],
|
||||
"executeOnce": false,
|
||||
"typeVersion": 2.2,
|
||||
@@ -290,12 +290,12 @@
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "000af828-3eaf-4b9d-b212-4c69aa1976bc",
|
||||
"id": "115d3433-b8f1-4d81-b149-8bb822e997b1",
|
||||
"name": "Changed",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"position": [
|
||||
2224,
|
||||
96
|
||||
1872,
|
||||
64
|
||||
],
|
||||
"typeVersion": 2.2
|
||||
},
|
||||
@@ -320,18 +320,18 @@
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "f79dd651-3891-4e9b-b2e8-be5bfa1fe7eb",
|
||||
"id": "bf83c6dd-f3ee-49c9-b939-8e017352cc0e",
|
||||
"name": "PutGitea",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
2560,
|
||||
224
|
||||
2208,
|
||||
192
|
||||
],
|
||||
"typeVersion": 4.2,
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "NEnkbkj4tAvlTLD8",
|
||||
"name": "Header Auth account"
|
||||
"id": "9rVued8FuUi6ySvN",
|
||||
"name": "gittea"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -342,18 +342,18 @@
|
||||
"genericAuthType": "httpHeaderAuth",
|
||||
"options": {}
|
||||
},
|
||||
"id": "4424b8ad-143a-4d3d-b99d-dcee4f02a710",
|
||||
"id": "acc889b6-052e-413d-8506-dbf173bc73eb",
|
||||
"name": "GetGitea",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
1232,
|
||||
112
|
||||
880,
|
||||
80
|
||||
],
|
||||
"typeVersion": 4.2,
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "NEnkbkj4tAvlTLD8",
|
||||
"name": "Header Auth account"
|
||||
"id": "9rVued8FuUi6ySvN",
|
||||
"name": "gittea"
|
||||
}
|
||||
},
|
||||
"onError": "continueRegularOutput"
|
||||
@@ -375,18 +375,18 @@
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"id": "fc17d602-92e1-411b-8ba4-00f62046fd2b",
|
||||
"id": "ca4ddd25-e866-4d98-8d29-4e7786c3e323",
|
||||
"name": "PostGitea",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"position": [
|
||||
1776,
|
||||
496
|
||||
1424,
|
||||
464
|
||||
],
|
||||
"typeVersion": 4.2,
|
||||
"credentials": {
|
||||
"httpHeaderAuth": {
|
||||
"id": "NEnkbkj4tAvlTLD8",
|
||||
"name": "Header Auth account"
|
||||
"id": "9rVued8FuUi6ySvN",
|
||||
"name": "gittea"
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -394,12 +394,12 @@
|
||||
"parameters": {
|
||||
"options": {}
|
||||
},
|
||||
"id": "ef790cca-0082-408f-bed3-5abf0496082c",
|
||||
"id": "686ab844-a3f5-4048-927f-6aa5fce089b8",
|
||||
"name": "ForEach",
|
||||
"type": "n8n-nodes-base.splitInBatches",
|
||||
"position": [
|
||||
912,
|
||||
96
|
||||
560,
|
||||
64
|
||||
],
|
||||
"executeOnce": false,
|
||||
"typeVersion": 3
|
||||
@@ -410,12 +410,12 @@
|
||||
"height": 1620,
|
||||
"width": 560
|
||||
},
|
||||
"id": "5b242ecc-275e-4d70-861b-64d4b3fcdc82",
|
||||
"id": "5084834c-0509-4ca1-a781-8d02c4d6184b",
|
||||
"name": "Sticky Note4",
|
||||
"type": "n8n-nodes-base.stickyNote",
|
||||
"position": [
|
||||
240,
|
||||
304
|
||||
-112,
|
||||
272
|
||||
],
|
||||
"typeVersion": 1
|
||||
}
|
||||
@@ -581,27 +581,26 @@
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"staticData": {
|
||||
"node:Schedule Trigger": {
|
||||
"recurrenceRules": []
|
||||
}
|
||||
"executionOrder": "v1",
|
||||
"availableInMCP": false
|
||||
},
|
||||
"staticData": null,
|
||||
"meta": {
|
||||
"templateCredsSetupCompleted": true
|
||||
},
|
||||
"pinData": {},
|
||||
"versionId": "fd25c766-ce51-4dea-ac87-7d4d1e1f1319",
|
||||
"triggerCount": 1,
|
||||
"versionId": "b781d821-7e2c-474a-884f-06f6bc47d286",
|
||||
"activeVersionId": null,
|
||||
"triggerCount": 0,
|
||||
"shared": [
|
||||
{
|
||||
"updatedAt": "2025-11-23T08:34:14.534Z",
|
||||
"createdAt": "2025-11-23T08:34:14.534Z",
|
||||
"updatedAt": "2026-02-07T17:36:53.546Z",
|
||||
"createdAt": "2026-02-07T17:36:53.546Z",
|
||||
"role": "workflow:owner",
|
||||
"workflowId": "fsaojBpJsioS4FYe",
|
||||
"projectId": "S4tmpzSj6JlGFOze"
|
||||
"workflowId": "L6OfcqzxnGM8NxfHm5oJk",
|
||||
"projectId": "cSAaWNJydnksD5EB"
|
||||
}
|
||||
],
|
||||
"activeVersion": null,
|
||||
"tags": []
|
||||
}
|
||||
Reference in New Issue
Block a user