63 lines
1.5 KiB
JSON
63 lines
1.5 KiB
JSON
{
|
|
"meta": {
|
|
"instanceId": "openhands-cli-test"
|
|
},
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"id": "webhook-trigger",
|
|
"name": "Webhook",
|
|
"type": "n8n-nodes-base.webhook",
|
|
"typeVersion": 2,
|
|
"position": [460, 300],
|
|
"webhookId": "gitea-webhook"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"command": "=cd /home/bam && echo \"{{ $json.repository.full_name }} {{ $json.commits[0].message }}\" > /tmp/task.txt && /home/bam/.local/bin/openhands -t \"$(cat /tmp/task.txt)\"",
|
|
"sessionId": "bam-openhands"
|
|
},
|
|
"id": "ssh-execute",
|
|
"name": "2. SSH Execute OpenHands",
|
|
"type": "n8n-nodes-base.ssh",
|
|
"typeVersion": 2,
|
|
"position": [680, 300],
|
|
"credentials": {
|
|
"sshPassword": {
|
|
"id": "ai-dev-localhost",
|
|
"name": "ai-dev-localhost"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"command": "=ls -la /home/bam/*.txt 2>/dev/null | tail -10",
|
|
"sessionId": "bam-openhands"
|
|
},
|
|
"id": "ssh-verify",
|
|
"name": "3. SSH Verify Results",
|
|
"type": "n8n-nodes-base.ssh",
|
|
"typeVersion": 2,
|
|
"position": [900, 300],
|
|
"credentials": {
|
|
"sshPassword": {
|
|
"id": "ai-dev-localhost",
|
|
"name": "ai-dev-localhost"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"pinData": {},
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
},
|
|
"staticData": null,
|
|
"tags": [],
|
|
"triggerCount": 0,
|
|
"updatedAt": "2025-11-30T21:50:00.000Z",
|
|
"versionId": "1",
|
|
"active": false,
|
|
"meta": {
|
|
"templateCredsSetupCompleted": false
|
|
}
|
|
} |