Skip to content

Commit cda97ab

Browse files
committed
🔄 synced local '.github/workflows/update-module-properties.yml' with remote '.releases/update-module-properties.yml'
1 parent 1e12097 commit cda97ab

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

‎.github/workflows/update-module-properties.yml‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,11 @@ jobs:
152152
properties_file = f"modules/{module_name}.properties"
153153
154154
if not os.path.exists(properties_file):
155-
print(f"Properties file not found: {properties_file}")
156-
print(f"Creating new properties file...")
157-
os.makedirs('modules', exist_ok=True)
158-
with open(properties_file, 'w', encoding='utf-8') as f:
159-
f.write(f"# {module_name.upper()} Module Properties\n")
160-
f.write(f"# Auto-generated and maintained by automation\n\n")
155+
print(f"ERROR: Properties file not found: {properties_file}")
156+
print(f"The properties file must already exist in the repository.")
157+
exit(1)
161158
159+
print(f"Reading existing properties file: {properties_file}")
162160
with open(properties_file, 'r', encoding='utf-8') as f:
163161
lines = f.readlines()
164162

0 commit comments

Comments
 (0)