From f42471254b291bee97d2933710c6c171c1f78ea4 Mon Sep 17 00:00:00 2001 From: EidanThen Date: Wed, 3 Jun 2026 21:32:38 +0000 Subject: [PATCH] Update n8nWorkflow.json --- n8nWorkflow.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/n8nWorkflow.json b/n8nWorkflow.json index 48615e4..9328bd4 100644 --- a/n8nWorkflow.json +++ b/n8nWorkflow.json @@ -1,6 +1,6 @@ { "$json": { - "updatedAt": "2026-06-03T21:29:54.378Z", + "updatedAt": "2026-06-03T21:32:36.044Z", "createdAt": "2026-06-03T20:22:29.809Z", "id": "nvV9JrJGy1AEZdYI", "name": "Gitea n8n test", @@ -49,7 +49,7 @@ }, { "parameters": { - "jsCode": "const sha = $('Obtener archivo').first().json.sha;\nconst data = { $json };\n\nreturn [{\n json: {\n message: \"Update archivo.json\",\n content: Buffer.from(JSON.stringify(data, null, 2)).toString(\"base64\"),\n sha: sha,\n branch: \"main\"\n }\n}];" + "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, @@ -62,7 +62,7 @@ }, { "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: \"Update \" + $('Valores').first().json.file_name + \".json\",\n content: base64,\n sha: sha,\n branch: \"main\"\n }\n}];" + "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, @@ -100,7 +100,7 @@ { "parameters": { "method": "PUT", - "url": "https://git.digitalcompass.agency/api/v1/repos/EidanThen/n8n-prueba/contents/archivo.json", + "url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/n8n-prueba/contents/{{ $('Valores').item.json.file_name }}.json", "sendHeaders": true, "headerParameters": { "parameters": [ @@ -305,9 +305,9 @@ "staticData": null, "meta": null, "pinData": {}, - "versionId": "755bc9b1-c99c-45cf-9469-4ce1b6bb0fe5", + "versionId": "74d193d1-5faf-45f3-ba2a-6377a3025cf8", "activeVersionId": null, - "versionCounter": 194, + "versionCounter": 206, "triggerCount": 0, "shared": [ {