You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/09/11 05:44:05 UTC

(opendal) branch xuanwo/verify-release-permissions-20260911 updated: ci: read the Nexus staging repository response directly

This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch xuanwo/verify-release-permissions-20260911
in repository https://gitbox.apache.org/repos/asf/opendal.git


The following commit(s) were added to refs/heads/xuanwo/verify-release-permissions-20260911 by this push:
     new a171abffc3 ci: read the Nexus staging repository response directly
a171abffc3 is described below

commit a171abffc34b36432620456a8dce3bc753565c15
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Fri Sep 11 13:43:58 2026 +0800

    ci: read the Nexus staging repository response directly
---
 .github/workflows/release_java.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/release_java.yml b/.github/workflows/release_java.yml
index 02178208ef..6dfeec05ab 100644
--- a/.github/workflows/release_java.yml
+++ b/.github/workflows/release_java.yml
@@ -56,19 +56,20 @@ jobs:
               )
               try:
                   with opener.open(request, timeout=30) as response:
-                      return json.load(response)["data"]
+                      return json.load(response)
               except urllib.error.HTTPError as error:
                   sys.exit(f"Read-only GET {path}: HTTP {error.code}")
 
-          status = get("status?perms=1")["clientPermissions"]
+          status = get("status?perms=1")["data"]["clientPermissions"]
           permissions = {p["id"]: int(p["value"]) for p in status["permissions"]}
           repository = get("staging/repository/orgapacheopendal-1090")
+          print("Staging response keys:", sorted(repository))
           report = {
               "authenticated": status["loggedIn"],
               "can_close_staging": bool(permissions.get("nexus:stagingfinish", 0) & 8),
               "can_promote_staging": bool(permissions.get("nexus:stagingpromote", 0) & 8),
               "opendal_repository_readable": True,
-              "repository_state": repository["type"],
+              "repository_state": repository.get("type"),
               "mutations_performed": False,
           }
           print(json.dumps(report, indent=2))