Skip to content

Commit 7587c05

Browse files
authored
Feat skill (#2809)
* chore: 添加skills 定义 * feat: add workflow to sync skills to chart-visualization-skills - Auto create PR when .skills directory changes - File validation (type, size, content check) - Only run on official antvis/L7 repository - Support manual trigger with force option * chore: 目录更新 * chore: 修复一下文档引用错误 * chore: 优化引用 * docs: update skills documentation and add new reference files * chore: 更新readme
1 parent b6ba984 commit 7587c05

27 files changed

Lines changed: 5210 additions & 434 deletions

.github/workflows/sync-skills.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,17 @@ jobs:
7676
- name: Sync skills directory
7777
run: |
7878
# 删除目标目录下的旧文件
79+
<<<<<<< HEAD
80+
rm -rf target-repo/skills
81+
82+
# 创建目标目录
83+
mkdir -p target-repo/skills
84+
=======
7985
rm -rf target-repo/l7
8086

8187
# 创建目标目录
8288
mkdir -p target-repo/l7
89+
>>>>>>> b6ba984a767a618a22261ca94945f9dff49ff88a
8390

8491
# 只复制允许的文件类型
8592
rsync -av --include='*/' \
@@ -89,11 +96,19 @@ jobs:
8996
--include='*.yaml' \
9097
--include='*.txt' \
9198
--exclude='*' \
99+
<<<<<<< HEAD
100+
skills/ target-repo/skills/
101+
102+
# 显示同步的文件
103+
echo "✅ 同步的文件:"
104+
find target-repo/skills -type f | sort
105+
=======
92106
skills/ target-repo/l7/
93107

94108
# 显示同步的文件
95109
echo "✅ 同步的文件:"
96110
find target-repo/l7 -type f | sort
111+
>>>>>>> b6ba984a767a618a22261ca94945f9dff49ff88a
97112

98113
- name: Create Pull Request
99114
run: |
@@ -112,7 +127,11 @@ jobs:
112127
git checkout -b "$BRANCH_NAME"
113128
114129
# 提交变更
130+
<<<<<<< HEAD
131+
git add skills/
132+
=======
115133
git add l7/
134+
>>>>>>> b6ba984a767a618a22261ca94945f9dff49ff88a
116135
git commit -m "chore: sync L7 skills from antvis/L7
117136

118137
Auto-synced from https://github.com/antvis/L7/tree/${{ github.sha }}/skills
@@ -143,7 +162,11 @@ jobs:
143162

144163
## 文件列表
145164

165+
<<<<<<< HEAD
166+
$(find skills -type f | sort | sed 's/^/- /')
167+
=======
146168
$(find l7 -type f | sort | sed 's/^/- /')
169+
>>>>>>> b6ba984a767a618a22261ca94945f9dff49ff88a
147170

148171
---
149172

0 commit comments

Comments
 (0)