Update n8nWorkflow.json
This commit is contained in:
+6
-6
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$json": {
|
"$json": {
|
||||||
"updatedAt": "2026-06-03T21:29:54.378Z",
|
"updatedAt": "2026-06-03T21:32:36.044Z",
|
||||||
"createdAt": "2026-06-03T20:22:29.809Z",
|
"createdAt": "2026-06-03T20:22:29.809Z",
|
||||||
"id": "nvV9JrJGy1AEZdYI",
|
"id": "nvV9JrJGy1AEZdYI",
|
||||||
"name": "Gitea n8n test",
|
"name": "Gitea n8n test",
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"parameters": {
|
"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",
|
"type": "n8n-nodes-base.code",
|
||||||
"typeVersion": 2,
|
"typeVersion": 2,
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"parameters": {
|
"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",
|
"type": "n8n-nodes-base.code",
|
||||||
"typeVersion": 2,
|
"typeVersion": 2,
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
{
|
{
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"method": "PUT",
|
"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,
|
"sendHeaders": true,
|
||||||
"headerParameters": {
|
"headerParameters": {
|
||||||
"parameters": [
|
"parameters": [
|
||||||
@@ -305,9 +305,9 @@
|
|||||||
"staticData": null,
|
"staticData": null,
|
||||||
"meta": null,
|
"meta": null,
|
||||||
"pinData": {},
|
"pinData": {},
|
||||||
"versionId": "755bc9b1-c99c-45cf-9469-4ce1b6bb0fe5",
|
"versionId": "74d193d1-5faf-45f3-ba2a-6377a3025cf8",
|
||||||
"activeVersionId": null,
|
"activeVersionId": null,
|
||||||
"versionCounter": 194,
|
"versionCounter": 206,
|
||||||
"triggerCount": 0,
|
"triggerCount": 0,
|
||||||
"shared": [
|
"shared": [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user