Skip to content

Commit 98f128b

Browse files
committed
fix:GitHub Actions 的自动提交报错是因为 git add 收到的路径模式 app/docs/**/*.markdown 没有匹配任何文件,Git 会直接返回 128。
1 parent a43f35c commit 98f128b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/sync-uuid.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ jobs:
6161
uses: stefanzweifel/git-auto-commit-action@v5
6262
with:
6363
commit_message: "chore(docs): sync doc metadata [skip ci]" # ← 防循环
64-
file_pattern: "app/docs/**/*.md app/docs/**/*.mdx app/docs/**/*.markdown generated/doc-contributors.json"
64+
file_pattern: |
65+
app/docs/**/*.md
66+
app/docs/**/*.mdx
67+
generated/doc-contributors.json
6568
6669
- name: Upload snapshot JSON
6770
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)