Files
atlas/sreweekly-digest/n8n/SRE Weekly Daily Scan.json
2026-09-12 18:23:57 +08:00

247 lines
6.2 KiB
JSON

{
"name": "SRE Weekly Daily Scan",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 6
}
]
}
},
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1.4,
"position": [
-2256,
-208
],
"id": "52a6e628-8334-4122-9def-4a43ffd00799",
"name": "Schedule Trigger"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 3
},
"conditions": [
{
"id": "ecab8c83-82e8-48e4-959c-699cf350a99e",
"leftValue": "={{ $json.stdout }}",
"rightValue": "NONE",
"operator": {
"type": "string",
"operation": "notEquals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.3,
"position": [
-1920,
-208
],
"id": "4d5b321a-afce-44a4-821a-654f57b1eb18",
"name": "If"
},
{
"parameters": {
"command": "python3 /Users/weishen/.hermes/skills/custom/sreweekly-digest/scripts/sreweekly.py --check --dir /Users/weishen/Workspace/nexus/sreweekly/",
"cwd": "/Users/weishen/.hermes/skills/custom/sreweekly-digest"
},
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
-2096,
-208
],
"id": "ef32410e-0d7d-41ae-b6a4-fc43fd0d8a02",
"name": "扫描检查是否有最新SRE Weekly期刊",
"credentials": {
"sshPassword": {
"id": "MyXMNq72AJx65AUV",
"name": "macmini-ssh-password-account"
}
}
},
{
"parameters": {
"command": "python3 /Users/weishen/.hermes/skills/custom/sreweekly-digest/scripts/sreweekly.py --dir /Users/weishen/Workspace/nexus/sreweekly/",
"cwd": "/Users/weishen/.hermes/skills/custom/sreweekly-digest"
},
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
-1808,
-432
],
"id": "09315d13-27b6-47e5-b1ca-5f258a72535a",
"name": "新增期保存为 HTML 并登记 manifest",
"credentials": {
"sshPassword": {
"id": "MyXMNq72AJx65AUV",
"name": "macmini-ssh-password-account"
}
}
},
{
"parameters": {
"command": "=python3 /Users/weishen/.hermes/skills/custom/sreweekly-digest/scripts/sreweekly.py --extract {{ $('扫描检查是否有最新SRE Weekly期刊').item.json.stdout }}",
"cwd": "/Users/weishen/.hermes/skills/custom/sreweekly-digest"
},
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
-1616,
-432
],
"id": "2061bdf9-df92-491c-9fc3-7e1dda3a7acb",
"name": "提取SRE Weekly 期刊内容到Nexus/sreweekly目录",
"credentials": {
"sshPassword": {
"id": "MyXMNq72AJx65AUV",
"name": "macmini-ssh-password-account"
}
}
},
{
"parameters": {
"command": "=cat /Users/weishen/Workspace/nexus/sreweekly/html/{{ $('扫描检查是否有最新SRE Weekly期刊').item.json.stdout }}*.html "
},
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
-1408,
-432
],
"id": "d144eadd-c771-4a75-ad52-cc4c99f284d6",
"name": "获取最新期刊HTML格式文章列表",
"credentials": {
"sshPassword": {
"id": "MyXMNq72AJx65AUV",
"name": "macmini-ssh-password-account"
}
}
},
{
"parameters": {
"fromEmail": "star-agent@agentmail.to",
"toEmail": "billyshen@163.com",
"subject": "=SRE Weekly — {{ $('扫描检查是否有最新SRE Weekly期刊').item.json.stdout }}",
"html": "={{ $json.stdout }}",
"options": {}
},
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2.1,
"position": [
-1216,
-432
],
"id": "031f43de-fb1b-456d-9dbc-bcab9aad4c26",
"name": "发送邮件",
"webhookId": "bb874d98-90cc-4cb8-bb9d-349829807a3b",
"credentials": {
"smtp": {
"id": "ECOkUVEjqLwMGZaL",
"name": "agentmail-smtp-account"
}
}
}
],
"pinData": {},
"connections": {
"Schedule Trigger": {
"main": [
[
{
"node": "扫描检查是否有最新SRE Weekly期刊",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "新增期保存为 HTML 并登记 manifest",
"type": "main",
"index": 0
}
]
]
},
"扫描检查是否有最新SRE Weekly期刊": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"新增期保存为 HTML 并登记 manifest": {
"main": [
[
{
"node": "提取SRE Weekly 期刊内容到Nexus/sreweekly目录",
"type": "main",
"index": 0
}
]
]
},
"提取SRE Weekly 期刊内容到Nexus/sreweekly目录": {
"main": [
[
{
"node": "获取最新期刊HTML格式文章列表",
"type": "main",
"index": 0
}
]
]
},
"获取最新期刊HTML格式文章列表": {
"main": [
[
{
"node": "发送邮件",
"type": "main",
"index": 0
}
]
]
},
"发送邮件": {
"main": [
[]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1",
"binaryMode": "separate"
},
"versionId": "177b90fd-f9fd-4ec6-8dd7-5d3168acef13",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "0d85c1c8320c5fe7dfb1167fa257713dc13ee89925aa6b6c8e5825922abfa363"
},
"nodeGroups": [],
"id": "ZUoXhUWvYUL1Tgqg",
"tags": []
}