Skip to content

Commit

Permalink
chore: fix status code in delete_gitee_releases
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Jul 28, 2024
1 parent 4a6f1bd commit 5e6e7e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def delete_gitee_releases(latest_id, client, uri, token):
print(f'Successfully deleted release #{id}.')
else:
raise ValueError(
f"Request failed with status code {release_api_response.status_code}")
f"Request failed with status code {delete_response.status_code}")


def sync_to_gitee(tag: str, body: str, files: slice):
Expand Down
3 changes: 0 additions & 3 deletions cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,6 @@ func reportState() {

// doSelfUpdate 执行更新检查 如果更新成功则会结束进程
func doSelfUpdate(useLocalVersion bool) {
if monitor.CachedCountryCode == "" {
return
}
v := semver.MustParse("0.1.0")
if useLocalVersion {
v = semver.MustParse(version)
Expand Down

0 comments on commit 5e6e7e2

Please sign in to comment.