From 426d9507e350b80ae71b5411956463dfc4931e99 Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Sat, 19 Dec 2020 00:28:34 -0800 Subject: [PATCH] Finalize new peek action workflow --- .github/scripts/icomoon_peek.py | 6 +++--- .github/workflows/peek_icons.yml | 10 +++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/scripts/icomoon_peek.py b/.github/scripts/icomoon_peek.py index 5f11e317..6fd55f59 100644 --- a/.github/scripts/icomoon_peek.py +++ b/.github/scripts/icomoon_peek.py @@ -9,9 +9,9 @@ from build_assets import filehandler, util def main(): args = util.get_commandline_args() new_icons = filehandler.find_new_icons(args.devicon_json_path, args.icomoon_json_path) - # if len(new_icons) == 0: - # print("No files need to be uploaded. Ending script...") - # return + if len(new_icons) == 0: + print("No files need to be uploaded. Ending script...") + return # print list of new icons print("List of new icons:", *new_icons, sep = "\n") diff --git a/.github/workflows/peek_icons.yml b/.github/workflows/peek_icons.yml index 1c6d6c9a..d40bf75b 100644 --- a/.github/workflows/peek_icons.yml +++ b/.github/workflows/peek_icons.yml @@ -40,16 +40,20 @@ jobs: env: IMG_URL: ${{ steps.imgur_step.outputs.imgur_url }} MESSAGE: > - Hi! I'm Devicons' Peek Bot! - - I just peeked at the icons that you wanted to add using [icomoon.io](https://icomoon.io/app/#/select). + Hi! + + + I'm Devicons' Peek Bot and I just peeked at the icons that you wanted to add using [icomoon.io](https://icomoon.io/app/#/select). Here is the result below: + ![Peeked Icons (top left)]({0}) + Note: If the image doesn't show up, it's probably because it has been autodeleted by Imgur after 6 months due to our API choice. + Here is [the url]({1}).