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:
1 parent
cb000cac90
commit
09c5108345
2 files changed
+3
-3
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user