diff --git a/.github/workflows/agent.yml b/.github/workflows/agent.yml index 1e33e37..5130b34 100644 --- a/.github/workflows/agent.yml +++ b/.github/workflows/agent.yml @@ -11,6 +11,8 @@ jobs: container: image: goreleaser/goreleaser-cross:v1.20 steps: + - run: | + git config --global --add safe.directory /__w/agent/agent - uses: actions/checkout@master with: fetch-depth: 0 diff --git a/main.go b/main.go index 0b119de..b086fa0 100644 --- a/main.go +++ b/main.go @@ -307,7 +307,7 @@ func doSelfUpdate(useLocalVersion bool) { v = semver.MustParse(version) } println("检查更新:", v) - latest, err := selfupdate.UpdateSelf(v, "naiba/nezha") + latest, err := selfupdate.UpdateSelf(v, "nezhahq/agent") if err != nil { println("更新失败:", err) return