diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index e99f00c..ab010c0 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -212,7 +212,9 @@ jobs: overall_fail=1 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 更新成功" else echo "❌ .gitattributes 更新失败"