From a469bf47bd73a13281b6eba9d4a9e13cd02bbd68 Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Fri, 10 Oct 2025 14:22:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(renovate):=20improve=20ver?= =?UTF-8?q?sion=20update=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - remove redundant directory existence check comment - replace deprecated arithmetic expression with modern shell syntax - add commit counter display for better progress tracking --- .github/workflows/renovate-app-version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/renovate-app-version.yml b/.github/workflows/renovate-app-version.yml index 957919c96..0268fc3f1 100644 --- a/.github/workflows/renovate-app-version.yml +++ b/.github/workflows/renovate-app-version.yml @@ -100,7 +100,6 @@ jobs: new_version=$(cat "apps/$app_name/${old_version}.version") rm -f "apps/$app_name/${old_version}.version" echo "处理: $app_name - $old_version → $new_version" - # 检查目录是否存在 if [ ! -d "apps/$app_name/$old_version" ]; then echo "✅ 旧目录不存在: apps/$app_name/$old_version" fi @@ -118,7 +117,8 @@ jobs: else git commit -m "🔧 chore($app_name): update app version from $old_version to $new_version" --no-verify echo "✅ 已提交: $old_version → $new_version" - ((commits_counter++)) + commits_counter=$((commits_counter + 1)) + echo "第 $commits_counter 个提交" fi else echo "⚠️ 没有找到版本标记文件: apps/$app_name/${old_version}.version"