From 1e4ff720d13a267aa55885e52f3f4686d2a6bf34 Mon Sep 17 00:00:00 2001 From: ximenchuifeng Date: Tue, 8 Sep 2026 13:35:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E7=BB=84=E4=BB=B6=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E7=9A=84=E6=97=A7=20tag=20=E5=89=A5=E5=BC=95=E5=8F=B7(?= =?UTF-8?q?=E5=B8=A6=E5=BC=95=E5=8F=B7=E5=86=99=E6=B3=95=E5=A6=82=E5=AE=9E?= =?UTF-8?q?=E5=85=A5=E8=B4=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/promote.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/promote.sh b/ci/promote.sh index b2dc06d..47395da 100755 --- a/ci/promote.sh +++ b/ci/promote.sh @@ -616,13 +616,13 @@ for c in components: continue m = pat_a.search(line) if m: # 形态 A:同行 - old_tag, hit_idx = m.group(2), idx + old_tag, hit_idx = m.group(2).strip("\"'"), idx lines[idx] = pat_a.sub(lambda _m: _m.group(1) + ":" + c["acrTag"], line) break for j in range(idx + 1, min(idx + 4, len(lines))): # 形态 B:邻近 tag: 字段 mb = pat_b.match(lines[j]) if mb: - old_tag, hit_idx = mb.group(2), j + old_tag, hit_idx = mb.group(2).strip("\"'"), j lines[j] = mb.group(1) + c["acrTag"] + "\n" break if hit_idx is not None: