Skip to content
Draft
Prev Previous commit
format json
  • Loading branch information
adinauer committed Sep 22, 2025
commit 2b77d4eb6c64b12a195efcaf92d6052144f3f455
10 changes: 9 additions & 1 deletion .github/data/spring-boot-2-versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{
"versions": ["2.1.0", "2.2.5", "2.4.13", "2.5.15", "2.6.15", "2.7.0", "2.7.18"]
"versions": [
"2.1.0",
"2.2.5",
"2.4.13",
"2.5.15",
"2.6.15",
"2.7.0",
"2.7.18"
]
}
8 changes: 7 additions & 1 deletion .github/data/spring-boot-3-versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"versions": ["3.0.0", "3.2.10", "3.3.5", "3.4.5", "3.5.6"]
"versions": [
"3.0.0",
"3.2.10",
"3.3.5",
"3.4.5",
"3.5.6"
]
}
6 changes: 5 additions & 1 deletion .github/data/spring-boot-4-versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"versions": ["4.0.0-M1", "4.0.0-M2", "4.0.0-M3"]
"versions": [
"4.0.0-M1",
"4.0.0-M2",
"4.0.0-M3"
]
}
5 changes: 3 additions & 2 deletions .github/workflows/update-spring-boot-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,11 @@ jobs:
def update_json_file(json_file, new_versions):
"""Update the JSON data file with new versions"""
try:
# Write new versions to JSON file
# Write new versions to JSON file with consistent formatting
data = {"versions": new_versions}
with open(json_file, 'w') as f:
json.dump(data, f, indent=2)
json.dump(data, f, indent=2, separators=(',', ': '))
f.write('\n') # Add trailing newline
return True
except Exception as e:
print(f"Error writing to {json_file}: {e}")
Expand Down
Loading