From 794e8592ba9a19cd9abd2d09114382c022d496d0 Mon Sep 17 00:00:00 2001 From: Thomas Bui <43018778+Thomas-Boi@users.noreply.github.com> Date: Sun, 13 Jun 2021 14:32:49 -0700 Subject: [PATCH] Fix duplicated past icons in build process (#674) --- .github/scripts/icomoon_build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/scripts/icomoon_build.py b/.github/scripts/icomoon_build.py index adf3e9259..23e49b0b9 100644 --- a/.github/scripts/icomoon_build.py +++ b/.github/scripts/icomoon_build.py @@ -67,7 +67,8 @@ def get_icons_for_building(devicon_json_path: str, token: str): for pull_req in pull_reqs: if api_handler.is_feature_icon(pull_req): filtered_icon = util.find_object_added_in_this_pr(all_icons, pull_req["title"]) - new_icons.append(filtered_icon) + if filtered_icon not in new_icons: + new_icons.append(filtered_icon) return new_icons