fix(ios): query the Xcode Cloud product endpoint
This commit is contained in:
1 parent
2c91aa7e33
commit
95c99844f1
2 files changed
+8
-8
No files matched your search
@@ -80,9 +80,9 @@ jobs:
|
||||
details = error.read().decode()
|
||||
raise SystemExit(f"App Store Connect API {method} {path} failed ({error.code}): {details}")
|
||||
|
||||
products = api("GET", f"/v1/apps/{app_id}/ciProducts?limit=10")
|
||||
product = api("GET", f"/v1/apps/{app_id}/ciProduct").get("data")
|
||||
workflows = []
|
||||
for product in products.get("data", []):
|
||||
for product in [product] if product else []:
|
||||
product_id = product["id"]
|
||||
query = urllib.parse.urlencode({
|
||||
"limit": 50,
|
||||
|
||||
@@ -123,12 +123,12 @@ print(
|
||||
f"next = {desired} (or higher) before Start Build."
|
||||
)
|
||||
|
||||
# Best-effort: list ciProducts for this app (manual UI remains source of truth for next number)
|
||||
st, products = api("GET", f"/v1/apps/{app_id}/ciProducts?limit=10")
|
||||
if isinstance(products, dict):
|
||||
for p in products.get("data", []):
|
||||
attrs = p.get("attributes") or {}
|
||||
print(f"ciProduct id={p.get('id')} name={attrs.get('name')} productType={attrs.get('productType')}")
|
||||
# Best-effort: read the ciProduct for this app (manual UI remains source of truth for next number)
|
||||
st, product = api("GET", f"/v1/apps/{app_id}/ciProduct")
|
||||
if isinstance(product, dict):
|
||||
p = product.get("data") or {}
|
||||
attrs = p.get("attributes") or {}
|
||||
print(f"ciProduct id={p.get('id')} name={attrs.get('name')} productType={attrs.get('productType')}")
|
||||
|
||||
if apply:
|
||||
version_file = ios_root / "Config" / "Version.xcconfig"
|
||||
|
||||
Reference in new issue
Block a user