1
0
Fork 0

🔧 chore(renovate): improve version update workflow

- remove redundant directory existence check comment
- replace deprecated arithmetic expression with modern shell syntax
- add commit counter display for better progress tracking
This commit is contained in:
pooneyy 2025-10-10 14:22:41 +08:00
parent 265a899c2d
commit a469bf47bd
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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"