Update hbd-panama-motorola.json

This commit is contained in:
2026-06-12 13:22:58 +00:00
parent 15f7fefe1d
commit df697bc5b9
+203 -232
View File
@@ -1,6 +1,6 @@
{
"$json": {
"updatedAt": "2026-06-12T13:22:31.816Z",
"updatedAt": "2026-06-12T13:22:45.441Z",
"createdAt": "2026-04-23T15:09:38.785Z",
"id": "ZzH2eMPrsqlY7WPz",
"name": "hbdwsp",
@@ -717,33 +717,6 @@
"id": "33f79a5c-4266-42cc-904f-687c5879f79e",
"name": "Sticky Note5"
},
{
"parameters": {
"method": "PUT",
"url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $('Valores').item.json.repo_name }}/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": [
-384,
720
],
"id": "49c564e6-d517-4b04-bb0b-cdeefe5e3b6a",
"name": "Actualizar archivo1"
},
{
"parameters": {
"assignments": {
@@ -1304,9 +1277,9 @@
}
]
},
"versionId": "f7a943c0-5e6a-469a-959a-0b765648f5eb",
"activeVersionId": "84a9502b-ea68-43fb-9c4a-3e179091a42f",
"versionCounter": 248,
"versionId": "2d27b5f7-f5c4-41f9-b008-d8f3a50557a5",
"activeVersionId": "2d27b5f7-f5c4-41f9-b008-d8f3a50557a5",
"versionCounter": 251,
"triggerCount": 1,
"shared": [
{
@@ -1329,9 +1302,9 @@
],
"tags": [],
"activeVersion": {
"updatedAt": "2026-06-06T02:18:19.000Z",
"createdAt": "2026-06-06T01:22:50.515Z",
"versionId": "84a9502b-ea68-43fb-9c4a-3e179091a42f",
"updatedAt": "2026-06-12T13:22:56.000Z",
"createdAt": "2026-06-12T13:22:45.446Z",
"versionId": "2d27b5f7-f5c4-41f9-b008-d8f3a50557a5",
"workflowId": "ZzH2eMPrsqlY7WPz",
"nodes": [
{
@@ -2044,149 +2017,33 @@
"name": "Sticky Note5"
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-1664,
944
],
"id": "ca97d042-ea23-4013-8acf-f0f6b66751e4",
"name": "When clicking Execute workflow"
"parameters": {
"assignments": {
"assignments": [
{
"id": "3519ad4c-6d66-4963-ab76-ee5517d88d67",
"name": "repo_name",
"value": "wsp-cumpleanos",
"type": "string"
},
{
"parameters": {
"method": "POST",
"url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8"
"id": "0df99f1e-1354-43b9-9d20-9f994cc82cf6",
"name": "file_name",
"value": "hbd-panama-motorola",
"type": "string"
}
]
},
"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,
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
-704,
1056
],
"id": "200d651f-1752-4739-863d-415af6921cec",
"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": [
-880,
848
],
"id": "eef04499-7d3f-4e6b-afbb-372a3f36b009",
"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": [
-880,
1056
],
"id": "e194cb60-209b-41b5-ba08-5fbbf0d91eeb",
"name": "Code in JavaScript1"
},
{
"parameters": {
"url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $json.repo_name }}/contents/{{ $json.file_name }}.json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": []
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
-1312,
-1488,
944
],
"id": "05a92af4-c7a4-465e-8cfa-ef149864dbce",
"name": "Obtener archivo",
"credentials": {
"httpHeaderAuth": {
"id": "KMhOYCzV5kCW5ztz",
"name": "Header Auth account 3"
}
},
"onError": "continueErrorOutput"
},
{
"parameters": {
"method": "PUT",
"url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $('Valores').item.json.repo_name }}/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": [
-704,
848
],
"id": "266adc8b-d8ed-41e2-a942-8db69b274230",
"name": "Actualizar archivo"
},
{
"parameters": {
"operation": "get",
"workflowId": {
"__rl": true,
"value": "ZzH2eMPrsqlY7WPz",
"mode": "list",
"cachedResultName": "hbdwsp (#ZzH2eMPrsqlY7WPz)"
},
"requestOptions": {}
},
"type": "n8n-nodes-base.n8n",
"typeVersion": 1,
"position": [
-1056,
848
],
"id": "585b45a1-b9f0-456f-8f9b-1d8261fc1576",
"name": "Get a workflow1",
"credentials": {
"n8nApi": {
"id": "73Ydc9X8h5HXvFrt",
"name": "Eidan - n8n account"
}
}
"id": "1faee201-e948-45a9-a189-e7613bc5e343",
"name": "Valores"
},
{
"parameters": {
@@ -2216,32 +2073,146 @@
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "3519ad4c-6d66-4963-ab76-ee5517d88d67",
"name": "repo_name",
"value": "wsp-cumpleanos",
"type": "string"
"operation": "get",
"workflowId": {
"__rl": true,
"value": "ZzH2eMPrsqlY7WPz",
"mode": "list",
"cachedResultName": "hbdwsp (#ZzH2eMPrsqlY7WPz)"
},
"requestOptions": {}
},
"type": "n8n-nodes-base.n8n",
"typeVersion": 1,
"position": [
-1056,
848
],
"id": "585b45a1-b9f0-456f-8f9b-1d8261fc1576",
"name": "Get a workflow1",
"credentials": {
"n8nApi": {
"id": "73Ydc9X8h5HXvFrt",
"name": "Eidan - n8n account"
}
}
},
{
"id": "0df99f1e-1354-43b9-9d20-9f994cc82cf6",
"name": "file_name",
"value": "hbd-panama-motorola",
"type": "string"
"parameters": {
"method": "PUT",
"url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"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": [
-704,
848
],
"id": "266adc8b-d8ed-41e2-a942-8db69b274230",
"name": "Actualizar archivo",
"credentials": {
"httpHeaderAuth": {
"id": "R4tnNpYoEjhBYeUT",
"name": "Eidan - gitea"
}
]
}
},
{
"parameters": {
"url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $json.repo_name }}/contents/{{ $json.file_name }}.json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendHeaders": true,
"headerParameters": {
"parameters": []
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.4,
"position": [
-1488,
-1312,
944
],
"id": "1faee201-e948-45a9-a189-e7613bc5e343",
"name": "Valores"
"id": "05a92af4-c7a4-465e-8cfa-ef149864dbce",
"name": "Obtener archivo",
"credentials": {
"httpHeaderAuth": {
"id": "R4tnNpYoEjhBYeUT",
"name": "Eidan - gitea"
}
},
"onError": "continueErrorOutput"
},
{
"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": [
-880,
1056
],
"id": "e194cb60-209b-41b5-ba08-5fbbf0d91eeb",
"name": "Code in JavaScript1"
},
{
"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": [
-880,
848
],
"id": "eef04499-7d3f-4e6b-afbb-372a3f36b009",
"name": "Code in JavaScript"
},
{
"parameters": {
"method": "POST",
"url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/{{ $('Valores').item.json.repo_name }}/contents/{{ $('Valores').item.json.file_name }}.json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"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": [
-704,
1056
],
"id": "200d651f-1752-4739-863d-415af6921cec",
"name": "Subir archivo",
"retryOnFail": false,
"credentials": {
"httpHeaderAuth": {
"id": "R4tnNpYoEjhBYeUT",
"name": "Eidan - gitea"
}
}
},
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
-1664,
944
],
"id": "ca97d042-ea23-4013-8acf-f0f6b66751e4",
"name": "When clicking Execute workflow"
}
],
"connections": {
@@ -2481,11 +2452,51 @@
]
]
},
"When clicking Execute workflow": {
"Valores": {
"main": [
[
{
"node": "Valores",
"node": "Obtener archivo",
"type": "main",
"index": 0
}
]
]
},
"Get a workflow1": {
"main": [
[
{
"node": "Code in JavaScript",
"type": "main",
"index": 0
}
]
]
},
"Obtener archivo": {
"main": [
[
{
"node": "Get a workflow1",
"type": "main",
"index": 0
}
],
[
{
"node": "Get a workflow2",
"type": "main",
"index": 0
}
]
]
},
"Get a workflow2": {
"main": [
[
{
"node": "Code in JavaScript1",
"type": "main",
"index": 0
}
@@ -2514,51 +2525,11 @@
]
]
},
"Obtener archivo": {
"When clicking Execute workflow": {
"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",
"node": "Valores",
"type": "main",
"index": 0
}
@@ -2567,15 +2538,15 @@
}
},
"authors": "Eidan Then",
"name": "Version 84a9502b",
"name": "Version 2d27b5f7",
"description": "",
"autosaved": true,
"workflowPublishHistory": [
{
"createdAt": "2026-06-06T02:18:19.297Z",
"id": 1177,
"createdAt": "2026-06-12T13:22:56.500Z",
"id": 1336,
"workflowId": "ZzH2eMPrsqlY7WPz",
"versionId": "84a9502b-ea68-43fb-9c4a-3e179091a42f",
"versionId": "2d27b5f7-f5c4-41f9-b008-d8f3a50557a5",
"event": "activated",
"userId": "de14e7e5-491b-4983-abb2-f88af42e92fd"
}