Skip to content

Commit

Permalink
fix: check update
Browse files Browse the repository at this point in the history
  • Loading branch information
MisakaTAT committed Dec 28, 2022
1 parent 314478b commit 433d8aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
fetch-depth: 1

- name: Set up Go
uses: actions/setup-go@v2
Expand Down
4 changes: 2 additions & 2 deletions internal/selfupdate/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func readLine() (str string) {
}

func lastVersion() (string, error) {
r, err := download.Request{URL: "https://api.github.com/repos/Mrs4s/go-cqhttp/releases/latest"}.JSON()
r, err := download.Request{URL: "https://api.github.com/repos/CodeLaboratory/go-cqhttp/releases/latest"}.JSON()
if err != nil {
return "", err
}
Expand All @@ -49,7 +49,7 @@ func CheckUpdate() {
return
}
if global.VersionNameCompare(base.Version, latest) {
logrus.Infof("当前有更新的 go-cqhttp 可供更新, 请前往 https://github.com/Mrs4s/go-cqhttp/releases 下载.")
logrus.Infof("当前有更新的 go-cqhttp 可供更新, 请前往 https://github.com/CodeLaboratory/go-cqhttp/releases 下载.")
logrus.Infof("当前版本: %v 最新版本: %v", base.Version, latest)
return
}
Expand Down

0 comments on commit 433d8aa

Please sign in to comment.