🔧 chore(ci): relax gitattributes check

This commit is contained in:
csh 2026-01-08 15:40:50 +08:00
parent 31dd0c5a38
commit 6244aa39da
1 changed files with 3 additions and 1 deletions

View File

@ -212,7 +212,9 @@ jobs:
overall_fail=1 overall_fail=1
fi fi
if grep -q "# BEGIN playbook .gitattributes" .gitattributes 2>/dev/null; then if grep -q "# BEGIN playbook .gitattributes" .gitattributes 2>/dev/null \
|| grep -q "# Added from playbook .gitattributes" .gitattributes 2>/dev/null \
|| grep -q "^\\* text=auto eol=lf" .gitattributes 2>/dev/null; then
echo "✅ .gitattributes 更新成功" echo "✅ .gitattributes 更新成功"
else else
echo "❌ .gitattributes 更新失败" echo "❌ .gitattributes 更新失败"