We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 491fb38 commit 5f80267Copy full SHA for 5f80267
scripts/copy_spec.py
@@ -25,21 +25,19 @@ def main(bucket_name: str, repo_name: str):
25
26
root_dir = Path.cwd().parents[1]
27
json_file = root_dir / f"{repo_name}.json"
28
- minified_json = "spec.json"
+ new_json_name = "spec.json"
29
30
print(json_file)
31
32
if not json_file.is_file():
33
print(f"[ERROR] JSON spec not found: {json_file}")
34
return 1
35
36
- with open(json_file, "r") as f:
37
- data = json.load(f)
+ json_file.rename(new_json_name)
38
39
- with open(minified_json, "w") as f:
40
- json.dump(data, f)
41
-
42
- upload_to_s3(minified_json, bucket_name, repo_name)
+ print(json_file)
+
+ upload_to_s3(json_file, bucket_name, repo_name)
43
44
print("[DONE] Processing complete.")
45
return 0
0 commit comments