Eliminar n8nWorkflow.json

This commit is contained in:
2026-06-03 21:36:22 +00:00
parent 0325355ce7
commit 2c11acbbcd
-362
View File
@@ -1,362 +0,0 @@
{
"$json": {
"updatedAt": "2026-06-03T21:36:08.610Z",
"createdAt": "2026-06-03T20:22:29.809Z",
"id": "nvV9JrJGy1AEZdYI",
"name": "Gitea n8n test",
"description": null,
"active": false,
"isArchived": false,
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-112,
48
],
"id": "198926a6-c823-456d-be1e-35b7c31b3152",
"name": "When clicking Execute workflow"
},
{
"parameters": {
"method": "POST",
"url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/n8n-prueba/contents/{{ $('Valores').item.json.file_name }}.json",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"branch\": \"{{ $json.branch }}\"\n}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
848,
160
],
"id": "095684ea-b184-4f2c-8f4d-c879c9879dbd",
"name": "Subir archivo",
"retryOnFail": false
},
{
"parameters": {
"jsCode": "const sha = $('Obtener archivo').first().json.sha;\nconst data = { $json };\n\nreturn [{\n json: {\n message: \"Update \" + $('Valores').first().json.file_name + \".json\",\n content: Buffer.from(JSON.stringify(data, null, 2)).toString(\"base64\"),\n sha: sha,\n branch: \"main\"\n }\n}];"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
672,
-48
],
"id": "70718bd0-b69a-4e24-8b99-9b8befdc7a7a",
"name": "Code in JavaScript"
},
{
"parameters": {
"jsCode": "const sha = $json.sha; // viene del GET anterior\nconst data = { $json };\n\nconst base64 = Buffer.from(JSON.stringify(data, null, 2)).toString(\"base64\");\n\nreturn [{\n json: {\n message: \"Create \" + $('Valores').first().json.file_name + \".json\",\n content: base64,\n sha: sha,\n branch: \"main\"\n }\n}];"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
672,
160
],
"id": "dae8528c-ea17-4f09-8612-92c67879003c",
"name": "Code in JavaScript1"
},
{
"parameters": {
"url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $json.repo_name }}/contents/{{ $json.file_name }}.json",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
240,
48
],
"id": "78024966-85c5-417d-939f-9d5df7e4d050",
"name": "Obtener archivo",
"onError": "continueErrorOutput"
},
{
"parameters": {
"method": "PUT",
"url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/n8n-prueba/contents/{{ $('Valores').item.json.file_name }}.json",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={\n \"message\": \"{{ $json.message }}\",\n \"content\": \"{{ $json.content }}\",\n \"sha\": \"{{ $json.sha }}\",\n \"branch\": \"{{ $json.branch }}\"\n}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
848,
-48
],
"id": "27c22629-bdc8-4de5-a2b7-6b155b8f44dc",
"name": "Actualizar archivo"
},
{
"parameters": {
"operation": "get",
"workflowId": {
"__rl": true,
"value": "nvV9JrJGy1AEZdYI",
"mode": "list",
"cachedResultName": "Gitea n8n test (#nvV9JrJGy1AEZdYI)"
},
"requestOptions": {}
},
"type": "n8n-nodes-base.n8n",
"typeVersion": 1,
"position": [
496,
-48
],
"id": "7c151d40-68d4-4021-910e-f7047f20725a",
"name": "Get a workflow1",
"credentials": {
"n8nApi": {
"id": "73Ydc9X8h5HXvFrt",
"name": "Eidan - n8n account"
}
}
},
{
"parameters": {
"operation": "get",
"workflowId": {
"__rl": true,
"value": "nvV9JrJGy1AEZdYI",
"mode": "list",
"cachedResultName": "Gitea n8n test (#nvV9JrJGy1AEZdYI)"
},
"requestOptions": {}
},
"type": "n8n-nodes-base.n8n",
"typeVersion": 1,
"position": [
496,
160
],
"id": "3b5ccdea-7d04-41a0-83bb-0d4907b11cc3",
"name": "Get a workflow2",
"credentials": {
"n8nApi": {
"id": "73Ydc9X8h5HXvFrt",
"name": "Eidan - n8n account"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "3519ad4c-6d66-4963-ab76-ee5517d88d67",
"name": "repo_name",
"value": "n8n-prueba",
"type": "string"
},
{
"id": "0df99f1e-1354-43b9-9d20-9f994cc82cf6",
"name": "file_name",
"value": "n8nWorkflow",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
64,
48
],
"id": "b6317eb2-986d-4973-b108-4d626bfc2c74",
"name": "Valores"
},
{
"parameters": {
"content": "## Valores del repositorio\n\n1. repo_name: Nombre del repositorio\n\n2. file_name: Nombre del archivo json de n8n",
"height": 352,
"width": 208
},
"type": "n8n-nodes-base.stickyNote",
"position": [
16,
-144
],
"typeVersion": 1,
"id": "1010624d-df03-46d4-bfaa-7f6249e81f65",
"name": "Sticky Note"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3.1,
"position": [
144,
336
],
"id": "45d8aab9-434f-49d9-85c3-2f89cef3584f",
"name": "AI Agent"
}
],
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Valores",
"type": "main",
"index": 0
}
]
]
},
"Code in JavaScript": {
"main": [
[
{
"node": "Actualizar archivo",
"type": "main",
"index": 0
}
]
]
},
"Code in JavaScript1": {
"main": [
[
{
"node": "Subir archivo",
"type": "main",
"index": 0
}
]
]
},
"Subir archivo": {
"main": [
[],
[]
]
},
"Obtener archivo": {
"main": [
[
{
"node": "Get a workflow1",
"type": "main",
"index": 0
}
],
[
{
"node": "Get a workflow2",
"type": "main",
"index": 0
}
]
]
},
"Get a workflow1": {
"main": [
[
{
"node": "Code in JavaScript",
"type": "main",
"index": 0
}
]
]
},
"Get a workflow2": {
"main": [
[
{
"node": "Code in JavaScript1",
"type": "main",
"index": 0
}
]
]
},
"Valores": {
"main": [
[
{
"node": "Obtener archivo",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1",
"binaryMode": "separate"
},
"staticData": null,
"meta": null,
"pinData": {},
"versionId": "47a82923-5355-43bc-8815-a1da62c4a18b",
"activeVersionId": null,
"versionCounter": 228,
"triggerCount": 0,
"shared": [
{
"updatedAt": "2026-06-03T20:22:29.813Z",
"createdAt": "2026-06-03T20:22:29.813Z",
"role": "workflow:owner",
"workflowId": "nvV9JrJGy1AEZdYI",
"projectId": "0bH6HfYEL8n6SDmr",
"project": {
"updatedAt": "2026-04-22T14:25:04.701Z",
"createdAt": "2026-04-22T14:22:54.790Z",
"id": "0bH6HfYEL8n6SDmr",
"name": "Eidan Then <ethen@gomezleemarketing.com>",
"type": "personal",
"icon": null,
"description": null,
"creatorId": "de14e7e5-491b-4983-abb2-f88af42e92fd"
}
}
],
"tags": [],
"activeVersion": null
}
}