Skip to content

Commit 426d950

Browse files
committed
Finalize new peek action workflow
1 parent f51bda7 commit 426d950

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/scripts/icomoon_peek.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
def main():
1010
args = util.get_commandline_args()
1111
new_icons = filehandler.find_new_icons(args.devicon_json_path, args.icomoon_json_path)
12-
# if len(new_icons) == 0:
13-
# print("No files need to be uploaded. Ending script...")
14-
# return
12+
if len(new_icons) == 0:
13+
print("No files need to be uploaded. Ending script...")
14+
return
1515

1616
# print list of new icons
1717
print("List of new icons:", *new_icons, sep = "\n")

.github/workflows/peek_icons.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,20 @@ jobs:
4040
env:
4141
IMG_URL: ${{ steps.imgur_step.outputs.imgur_url }}
4242
MESSAGE: >
43-
Hi! I'm Devicons' Peek Bot!
44-
45-
I just peeked at the icons that you wanted to add using [icomoon.io](https://icomoon.io/app/#/select).
43+
Hi!
44+
45+
46+
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).
4647
4748
Here is the result below:
4849
50+
4951
![Peeked Icons (top left)]({0})
5052
53+
5154
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.
5255
56+
5357
Here is [the url]({1}).
5458
5559

0 commit comments

Comments
 (0)