update skill: add default git.valavala.com support
This commit is contained in:
parent
6d554c1fbd
commit
e707cf6c63
@ -3,6 +3,7 @@
|
||||
自动将OpenClaw workspace内容定期备份到Git仓库,自动过滤敏感信息,无硬编码凭证。
|
||||
## 特性
|
||||
- ✅ 自动排除密钥、密码等敏感文件(secrets.md、.env、*.key等)
|
||||
- ✅ 内置公司Git服务(git.valavala.com)支持,无需额外配置地址
|
||||
- ✅ 支持自定义定时备份时间
|
||||
- ✅ 敏感信息通过参数传入,不存储在skill代码中
|
||||
- ✅ 自动生成备份日志,便于排查问题
|
||||
@ -12,7 +13,7 @@
|
||||
| git_token | string | 是 | Git仓库访问Token |
|
||||
| git_username | string | 是 | Git用户名 |
|
||||
| git_email | string | 是 | Git提交邮箱 |
|
||||
| git_repo_url | string | 是 | Git仓库HTTPS地址(格式:https://域名/所有者/仓库名.git) |
|
||||
| git_repo_url | string | 否 | Git仓库HTTPS地址(格式:https://域名/所有者/仓库名.git),默认使用公司git.valavala.com服务,自动生成仓库地址:https://git.valavala.com/{git_username}/ai_member_{git_username}.git |
|
||||
| cron_schedule | string | 否 | 定时任务cron表达式,默认值:`30 8 * * *`(每天早上8:30) |
|
||||
## 使用方法
|
||||
### 1. 初始化配置
|
||||
|
||||
@ -4,7 +4,7 @@ set -e
|
||||
GIT_TOKEN="$1"
|
||||
GIT_USERNAME="$2"
|
||||
GIT_EMAIL="$3"
|
||||
GIT_REPO_URL="$4"
|
||||
GIT_REPO_URL="${4:-https://git.valavala.com/${GIT_USERNAME}/ai_member_${GIT_USERNAME}.git}"
|
||||
CRON_SCHEDULE="${5:-30 8 * * *}"
|
||||
WORKSPACE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../../" && pwd)"
|
||||
# 初始化Git仓库
|
||||
|
||||
@ -16,8 +16,8 @@ parameters:
|
||||
required: true
|
||||
type: string
|
||||
git_repo_url:
|
||||
description: Git仓库HTTPS地址
|
||||
required: true
|
||||
description: Git仓库HTTPS地址(可选,默认使用公司git.valavala.com服务,仓库名规则:ai_member_${git_username})
|
||||
required: false
|
||||
type: string
|
||||
cron_schedule:
|
||||
description: 定时任务cron表达式,默认每天8:30
|
||||
|
||||
Loading…
Reference in New Issue
Block a user