🔧 对齐Forgejo Secrets名称·GITEA_TOKEN→ZY_REPO_TOKEN·消除硬编码token
This commit is contained in:
parent
a2c7e35fb0
commit
04b3a68942
@ -72,7 +72,7 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo "启动 Terminal Watcher..."
|
echo "启动 Terminal Watcher..."
|
||||||
cd "$SCRIPTS_DIR"
|
cd "$SCRIPTS_DIR"
|
||||||
GITEA_TOKEN=3e16b79c427bb44b77c00b319aa641bde8f61d84 pm2 start watcher.js \
|
ZY_REPO_TOKEN=${{ secrets.ZY_REPO_TOKEN }} pm2 start watcher.js \
|
||||||
--name terminal-watcher \
|
--name terminal-watcher \
|
||||||
--max-memory-restart 64M
|
--max-memory-restart 64M
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -30,7 +30,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
|
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
|
||||||
QIANWEN_API_KEY: ${{ secrets.QIANWEN_API_KEY }}
|
QIANWEN_API_KEY: ${{ secrets.QIANWEN_API_KEY }}
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
ZY_REPO_TOKEN: ${{ secrets.ZY_REPO_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
cd /opt/zhuyuan-cn/repo-mirror/20260509-1849/guanghulab/scripts/patrol-agent
|
cd /opt/zhuyuan-cn/repo-mirror/20260509-1849/guanghulab/scripts/patrol-agent
|
||||||
node patrol-agent.js --once
|
node patrol-agent.js --once
|
||||||
|
|||||||
@ -53,7 +53,7 @@ const CONFIG = {
|
|||||||
// Gitea
|
// Gitea
|
||||||
gitea: {
|
gitea: {
|
||||||
url: process.env.GITEA_URL || "https://guanghulab.com",
|
url: process.env.GITEA_URL || "https://guanghulab.com",
|
||||||
token: process.env.GITEA_TOKEN || "",
|
token: process.env.ZY_REPO_TOKEN || "",
|
||||||
owner: "bingshuo",
|
owner: "bingshuo",
|
||||||
repo: "guanghulab"
|
repo: "guanghulab"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
"url": "https://guanghulab.com",
|
"url": "https://guanghulab.com",
|
||||||
"owner": "bingshuo",
|
"owner": "bingshuo",
|
||||||
"repo": "guanghulab",
|
"repo": "guanghulab",
|
||||||
"token_env": "GITEA_TOKEN",
|
"token_env": "ZY_REPO_TOKEN",
|
||||||
"snapshot_path": ".runtime/terminal-snapshots/ZY-SVR-004"
|
"snapshot_path": ".runtime/terminal-snapshots/ZY-SVR-004"
|
||||||
},
|
},
|
||||||
"local": {
|
"local": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user