Skip to content

Commit ab0cba5

Browse files
committed
Add the public-upload-to-imgur action
1 parent e0d3525 commit ab0cba5

2 files changed

Lines changed: 6 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
name: geckodriver-log
3030
path: ./geckodriver.log
3131
- name: Upload screenshot of the newly made icons
32-
uses: actions/upload-artifact@v2
32+
uses: Thomas-Boi/public-upload-to-imgur@v1
3333
if: ${{success()}}
3434
with:
35-
name: new_icons
36-
path: ./new_icons.png
35+
img_path: ./new_icons.png
36+
client_id: ${{secrets.IMGUR_CLIENT_ID}}
3737
# - name: Comment on the PR about the result
3838
# uses: github-actions-up-and-running/pr-comment@v1.0.1
3939
# with:

0 commit comments

Comments
 (0)