更新了自动检查更新的提示信息
All checks were successful
Java CI-CD with Maven / build (push) Successful in 6m4s

This commit is contained in:
zhangyuheng 2024-04-28 17:41:39 +08:00
parent 164b82f0b6
commit 987885720b
3 changed files with 5 additions and 4 deletions

View File

@ -35,8 +35,9 @@ jobs:
ln -s /usr/local/go/bin/go /usr/bin/go
go version
- name: "Release"
uses: https://ssl.lunadeer.cn:14446/actions/release-action@main
uses: https://ssl.lunadeer.cn:14446/zhangyuheng/release-action@main
with:
note: "提示:带 original- 前缀的文件无法用于运行,请下载不带此前缀的版本。"
files: |-
staging/*.jar
api_key: '${{secrets.RELEASE_TOKEN}}'

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId>
<artifactId>MiniPlayerTitle</artifactId>
<version>2.11.2</version>
<version>2.11.3</version>
<packaging>jar</packaging>
<name>MiniPlayerTitle</name>

View File

@ -73,7 +73,7 @@ public class GiteaReleaseCheck {
JSONObject latestRelease = (JSONObject) releaseList.get(0);
GiteaRelease release = new GiteaRelease();
release.tag_name = (String) latestRelease.get("tag_name");
release.message = getTagMessage(release.tag_name);
release.message = (String) latestRelease.get("body");
release.html_url = (String) latestRelease.get("html_url");
JSONArray assets = (JSONArray) latestRelease.get("assets");
if (assets.size() > 0) {
@ -87,7 +87,7 @@ public class GiteaReleaseCheck {
XLogger.debug("HTML URL: " + latest_release.html_url);
if (isNewVersion(current_version, latest_release.tag_name)) {
XLogger.info("发现新版本:" + latest_release.tag_name);
XLogger.info("更新内容" + latest_release.message);
XLogger.info("版本信息" + latest_release.message);
XLogger.info("下载页面:" + latest_release.html_url);
} else {
XLogger.info("当前已是最新版本:" + current_version);