🐛 fix(ci): 修复贡献者列表未过滤 ci[bot] 的问题

grep 正则中 [bot] 被解析为字符类,导致 ^ci[bot]$ 无法匹配字面量。
改用 grep -vxF 按字面整行匹配过滤 bot 用户名。
This commit is contained in:
csh
2026-07-20 17:13:07 +08:00
parent a83c52ec2c
commit d6654b4d6d
+2 -2
View File
@@ -674,14 +674,14 @@ jobs:
grep -v "github-actions\[bot\]" | \ grep -v "github-actions\[bot\]" | \
grep -v "dependabot\[bot\]" | \ grep -v "dependabot\[bot\]" | \
grep -v "renovate\[bot\]" | \ grep -v "renovate\[bot\]" | \
grep -v "^${{ env.GIT_USER_NAME }}$" | \ grep -vxF "${{ env.GIT_USER_NAME }}" | \
sort -u) sort -u)
else else
CONTRIBUTORS=$(git log $COMMIT_RANGE --pretty=format:"%an" --no-merges | \ CONTRIBUTORS=$(git log $COMMIT_RANGE --pretty=format:"%an" --no-merges | \
grep -v "github-actions\[bot\]" | \ grep -v "github-actions\[bot\]" | \
grep -v "dependabot\[bot\]" | \ grep -v "dependabot\[bot\]" | \
grep -v "renovate\[bot\]" | \ grep -v "renovate\[bot\]" | \
grep -v "^${{ env.GIT_USER_NAME }}$" | \ grep -vxF "${{ env.GIT_USER_NAME }}" | \
sort -u) sort -u)
fi fi