mirror of
https://github.com/konpa/devicon.git
synced 2025-08-12 09:34:36 +02:00
add handling for no given aliases
This commit is contained in:
2
.github/scripts/build_assets/filehandler.py
vendored
2
.github/scripts/build_assets/filehandler.py
vendored
@@ -63,7 +63,7 @@ def get_svgs_paths(new_icons: List[dict], icons_folder_path: str) -> List[str]:
|
||||
try:
|
||||
aliases = icon_info["aliases"]
|
||||
except KeyError:
|
||||
continue
|
||||
aliases = [] # create empty list of aliases if not provided in devicon.json
|
||||
|
||||
for font_version in icon_info["versions"]["font"]:
|
||||
if is_alias(font_version, aliases):
|
||||
|
3
.github/scripts/icomoon_upload.py
vendored
3
.github/scripts/icomoon_upload.py
vendored
@@ -43,6 +43,9 @@ def main():
|
||||
print("No files need to be uploaded. Ending script...")
|
||||
return
|
||||
|
||||
# print list of new icons, separated by comma
|
||||
print("List of new icons:")
|
||||
print(*new_icons, sep = "\n")
|
||||
try:
|
||||
runner = SeleniumRunner(args.icomoon_json_path, args.download_path,
|
||||
args.geckodriver_path, args.headless)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user