Update n8nWorkflow.json

This commit is contained in:
2026-06-03 21:32:38 +00:00
parent 7f83d9215c
commit f42471254b
+6 -6
View File
@@ -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": [
{