From 0c46ce57abef9b1f204d2d164204b5d561a25486 Mon Sep 17 00:00:00 2001 From: naiba Date: Wed, 10 May 2023 23:36:51 +0800 Subject: [PATCH] update --- .github/workflows/agent.yml | 2 ++ main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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