Skip to content

Commit 794e859

Browse files
authored
Fix duplicated past icons in build process (#674)
1 parent 26e2c64 commit 794e859

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/scripts/icomoon_build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def get_icons_for_building(devicon_json_path: str, token: str):
6767
for pull_req in pull_reqs:
6868
if api_handler.is_feature_icon(pull_req):
6969
filtered_icon = util.find_object_added_in_this_pr(all_icons, pull_req["title"])
70-
new_icons.append(filtered_icon)
70+
if filtered_icon not in new_icons:
71+
new_icons.append(filtered_icon)
7172
return new_icons
7273

7374

0 commit comments

Comments
 (0)