Skip to content

Commit 9f4685a

Browse files
committed
debug
1 parent 3ac36dc commit 9f4685a

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/update-spring-boot-versions.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,20 @@ jobs:
5858
response.raise_for_status()
5959
data = response.json()
6060
61+
if 'response' not in data or 'docs' not in data['response']:
62+
raise Exception(f"Unexpected API response structure: {data}")
63+
64+
docs = data['response']['docs']
65+
print(f"Found {len(docs)} documents in response")
66+
67+
if docs and len(docs) > 0:
68+
print(f"Sample doc structure: {list(docs[0].keys())}")
69+
6170
versions = []
62-
for doc in data['response']['docs']:
71+
for doc in docs:
72+
if 'v' not in doc:
73+
print(f"Warning: 'v' field missing from doc: {doc}")
74+
continue
6375
v = doc['v']
6476
# Only include release versions (no SNAPSHOT, RC, M versions for 2.x and 3.x)
6577
if not any(suffix in v for suffix in ['SNAPSHOT', 'RC', 'BUILD']):

0 commit comments

Comments
 (0)