diff --git a/hbd-panama-motorola.json b/hbd-panama-motorola.json index 57bed4d..ad2e4cb 100644 --- a/hbd-panama-motorola.json +++ b/hbd-panama-motorola.json @@ -1,6 +1,6 @@ { "$json": { - "updatedAt": "2026-06-06T01:22:50.512Z", + "updatedAt": "2026-06-11T22:06:17.884Z", "createdAt": "2026-04-23T15:09:38.785Z", "id": "ZzH2eMPrsqlY7WPz", "name": "hbdwsp", @@ -813,15 +813,8 @@ "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" - } - ] - }, + "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}", @@ -834,7 +827,13 @@ 848 ], "id": "266adc8b-d8ed-41e2-a942-8db69b274230", - "name": "Actualizar archivo" + "name": "Actualizar archivo", + "credentials": { + "httpHeaderAuth": { + "id": "KMhOYCzV5kCW5ztz", + "name": "Header Auth account 3" + } + } }, { "parameters": { @@ -916,6 +915,33 @@ ], "id": "1faee201-e948-45a9-a189-e7613bc5e343", "name": "Valores" + }, + { + "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": [ + -416, + 896 + ], + "id": "49c564e6-d517-4b04-bb0b-cdeefe5e3b6a", + "name": "Actualizar archivo1" } ], "connections": { @@ -1279,9 +1305,9 @@ } ] }, - "versionId": "84a9502b-ea68-43fb-9c4a-3e179091a42f", - "activeVersionId": "89a13adb-5a90-4de5-afe8-6d8dabe41834", - "versionCounter": 225, + "versionId": "93864024-43e7-4529-b66d-fe8f29e8022c", + "activeVersionId": "84a9502b-ea68-43fb-9c4a-3e179091a42f", + "versionCounter": 232, "triggerCount": 1, "shared": [ { @@ -1304,9 +1330,9 @@ ], "tags": [], "activeVersion": { - "updatedAt": "2026-06-06T01:09:32.000Z", - "createdAt": "2026-06-06T01:09:27.699Z", - "versionId": "89a13adb-5a90-4de5-afe8-6d8dabe41834", + "updatedAt": "2026-06-06T02:18:19.000Z", + "createdAt": "2026-06-06T01:22:50.515Z", + "versionId": "84a9502b-ea68-43fb-9c4a-3e179091a42f", "workflowId": "ZzH2eMPrsqlY7WPz", "nodes": [ { @@ -2032,7 +2058,7 @@ { "parameters": { "method": "POST", - "url": "=https://git.digitalcompass.agency/api/v1/repos/EidanThen/n8n-prueba/contents/{{ $('Valores').item.json.file_name }}.json", + "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": [ @@ -2086,14 +2112,11 @@ { "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": [ - { - "name": "Authorization", - "value": "token f68f177ebd3d5795ffc09c1cd880c4007b063fd8" - } - ] + "parameters": [] }, "options": {} }, @@ -2105,12 +2128,18 @@ ], "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/n8n-prueba/contents/{{ $('Valores').item.json.file_name }}.json", + "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": [ @@ -2139,9 +2168,9 @@ "operation": "get", "workflowId": { "__rl": true, - "value": "nvV9JrJGy1AEZdYI", + "value": "ZzH2eMPrsqlY7WPz", "mode": "list", - "cachedResultName": "Gitea n8n test (#nvV9JrJGy1AEZdYI)" + "cachedResultName": "hbdwsp (#ZzH2eMPrsqlY7WPz)" }, "requestOptions": {} }, @@ -2165,9 +2194,9 @@ "operation": "get", "workflowId": { "__rl": true, - "value": "nvV9JrJGy1AEZdYI", + "value": "ZzH2eMPrsqlY7WPz", "mode": "list", - "cachedResultName": "Gitea n8n test (#nvV9JrJGy1AEZdYI)" + "cachedResultName": "hbdwsp (#ZzH2eMPrsqlY7WPz)" }, "requestOptions": {} }, @@ -2193,13 +2222,13 @@ { "id": "3519ad4c-6d66-4963-ab76-ee5517d88d67", "name": "repo_name", - "value": "n8n-prueba", + "value": "wsp-cumpleanos", "type": "string" }, { "id": "0df99f1e-1354-43b9-9d20-9f994cc82cf6", "name": "file_name", - "value": "n8nWorkflow", + "value": "hbd-panama-motorola", "type": "string" } ] @@ -2539,15 +2568,15 @@ } }, "authors": "Eidan Then", - "name": "Version 89a13adb", + "name": "Version 84a9502b", "description": "", "autosaved": true, "workflowPublishHistory": [ { - "createdAt": "2026-06-06T01:09:32.324Z", - "id": 1174, + "createdAt": "2026-06-06T02:18:19.297Z", + "id": 1177, "workflowId": "ZzH2eMPrsqlY7WPz", - "versionId": "89a13adb-5a90-4de5-afe8-6d8dabe41834", + "versionId": "84a9502b-ea68-43fb-9c4a-3e179091a42f", "event": "activated", "userId": "de14e7e5-491b-4983-abb2-f88af42e92fd" }