From 6244aa39daa1a528a75de6db9b443881bc9d4927 Mon Sep 17 00:00:00 2001 From: csh Date: Thu, 8 Jan 2026 15:40:50 +0800 Subject: [PATCH] :wrench: chore(ci): relax gitattributes check --- .gitea/workflows/test.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 更新失败"