Skip to content

Commit 240b169

Browse files
fix: Clean demo directory
1 parent 0de13ad commit 240b169

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/sync-demo.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
token: ${{ secrets.GITHUB_TOKEN }}
3535
path: demo
3636

37+
- name: Clean demo directory
38+
run: |
39+
cd demo
40+
# 删除所有文件/文件夹,但保留 .git
41+
find . -mindepth 1 -path './.git' -prune -o -exec rm -rf {} + 2>/dev/null || true
42+
3743
- name: Copy files using config
3844
run: |
3945
while IFS= read -r line; do

0 commit comments

Comments
 (0)