Skip to content

Commit 7e7f502

Browse files
committed
🔄 synced local '.github/workflows/update-module-properties.yml' with remote '.releases/update-module-properties.yml'
1 parent 538bc5d commit 7e7f502

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
# Special handling for:
9999
# - composer: uses .phar files
100100
# - xlight: version in release name
101+
# - mailpit: version in release name (files named mailpit-windows-amd64.zip)
101102
# - git: files start with "portable"
102103
# - nodejs: files start with "node-" instead of "nodejs"
103104
# - ghostscript: version embedded without dots (e.g., gs10051w64.7z for version 10.05.1)
@@ -145,6 +146,22 @@ jobs:
145146
print(f"ERROR: Could not extract version for xlight from release name")
146147
print(f"Release name: {release_data.get('name', 'N/A')}")
147148
exit(1)
149+
elif module_name == 'mailpit':
150+
# For mailpit, look for mailpit-windows-amd64.zip and use version from release name
151+
if filename == 'mailpit-windows-amd64.zip':
152+
download_url = asset['browser_download_url']
153+
if release_name_version:
154+
ver = release_name_version
155+
assets.append({
156+
'version': ver,
157+
'url': download_url,
158+
'filename': filename
159+
})
160+
print(f"Found: {filename} -> Version: {ver}")
161+
else:
162+
print(f"ERROR: Could not extract version for mailpit from release name")
163+
print(f"Release name: {release_data.get('name', 'N/A')}")
164+
exit(1)
148165
elif module_name == 'git':
149166
# For git, files start with "portable" instead of "git"
150167
# Accept files with .7z, .exe, .zip extensions (including double extensions like .7z.exe)
@@ -320,6 +337,9 @@ jobs:
320337
elif module_name == 'xlight':
321338
print(f"No xlight-x64.zip asset found in release")
322339
print(f"Available assets: {[a['name'] for a in release_data.get('assets', [])]}")
340+
elif module_name == 'mailpit':
341+
print(f"No mailpit-windows-amd64.zip asset found in release")
342+
print(f"Available assets: {[a['name'] for a in release_data.get('assets', [])]}")
323343
elif module_name == 'git':
324344
print(f"No valid assets found in release")
325345
print(f"Expected: .7z, .exe, or .zip files starting with 'portable'")

0 commit comments

Comments
 (0)