feat(ci): change badge to yellow '待测试' on new version detection

When tracker detects a new Gitea version, the shields.io badge now
updates from 'tested-blue' to '待测试-yellow' to indicate pending
verification status.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
KenanZhuandClaude committed 2026-06-23 11:11:37 +08:00
1 parent cb000cac90
commit 09c5108345
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -91,8 +91,8 @@ jobs:
if: steps.version.outputs.skip != 'true'
run: |
NEW="${{ steps.version.outputs.new_version }}"
# Badge: replace version between %20...%20tested-blue
sed -i "/TRACKER:BADGE/s/%20[0-9a-z.-]*%20tested-blue/%20${NEW}%20tested-blue/" README.md
# Badge: update version, change label tested→待测试, color blue→yellow
sed -i "/TRACKER:BADGE/s/%20[0-9a-z.-]*%20tested-blue/%20${NEW}%20%E5%BE%85%E6%B5%8B%E8%AF%95-yellow/" README.md
# Latest tested: update version on the TRACKER:LATEST-TESTED line
sed -i "/TRACKER:LATEST-TESTED/s/Gitea [0-9.]*/Gitea ${NEW}/" README.md