Skip to content

Commit e4b40c8

Browse files
committed
Fix CI
1 parent 246e5f7 commit e4b40c8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/generate_plugin_repo.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,9 @@
44
This script creates the YAML file in the required format for the CF CLI plugin repository.
55
"""
66

7-
import os
87
import sys
98
import yaml
109
import hashlib
11-
import requests
1210
from datetime import datetime
1311
from pathlib import Path
1412

@@ -71,8 +69,9 @@ def generate_plugin_repo_yaml(version: str):
7169

7270
# Write the YAML file
7371
output_file = Path("plugin-repo-entry.yml")
72+
yaml_content = yaml.dump(plugin_entry, default_flow_style=False, sort_keys=False).replace('"', "'")
7473
with open(output_file, 'w') as f:
75-
f.write(yaml.dump(plugin_entry, f, default_flow_style=False, sort_keys=False).replace('"', "'"))
74+
f.write(yaml_content)
7675

7776
print(f"Generated plugin repository YAML file: {output_file}")
7877
print(f"Version: {version}")
@@ -84,7 +83,7 @@ def generate_plugin_repo_yaml(version: str):
8483
f.write(f"CF CLI Java Plugin Repository Entry\n")
8584
f.write(f"====================================\n\n")
8685
f.write(f"Version: {version}\n")
87-
f.write(f"Updated: {plugin_entry['updated']}\n")
86+
f.write(f"Updated: {plugin_entry[0]['updated']}\n")
8887
f.write(f"Binaries: {len(binaries)} platforms\n\n")
8988
f.write("Platform checksums:\n")
9089
for binary in binaries:

0 commit comments

Comments
 (0)