update
This commit is contained in:
parent
1c13e415fa
commit
0c46ce57ab
2
.github/workflows/agent.yml
vendored
2
.github/workflows/agent.yml
vendored
@ -11,6 +11,8 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: goreleaser/goreleaser-cross:v1.20
|
image: goreleaser/goreleaser-cross:v1.20
|
||||||
steps:
|
steps:
|
||||||
|
- run: |
|
||||||
|
git config --global --add safe.directory /__w/agent/agent
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
2
main.go
2
main.go
@ -307,7 +307,7 @@ func doSelfUpdate(useLocalVersion bool) {
|
|||||||
v = semver.MustParse(version)
|
v = semver.MustParse(version)
|
||||||
}
|
}
|
||||||
println("检查更新:", v)
|
println("检查更新:", v)
|
||||||
latest, err := selfupdate.UpdateSelf(v, "naiba/nezha")
|
latest, err := selfupdate.UpdateSelf(v, "nezhahq/agent")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
println("更新失败:", err)
|
println("更新失败:", err)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user