1
0
mirror of https://github.com/konpa/devicon.git synced 2025-08-13 18:14:21 +02:00

Add the public-upload-to-imgur action

This commit is contained in:
Thomas Bui
2020-12-18 23:24:27 -08:00
parent e0d35253fc
commit ab0cba5eba
2 changed files with 6 additions and 6 deletions

View File

@@ -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")

View File

@@ -29,11 +29,11 @@ jobs:
name: geckodriver-log
path: ./geckodriver.log
- name: Upload screenshot of the newly made icons
uses: actions/upload-artifact@v2
uses: Thomas-Boi/public-upload-to-imgur@v1
if: ${{success()}}
with:
name: new_icons
path: ./new_icons.png
img_path: ./new_icons.png
client_id: ${{secrets.IMGUR_CLIENT_ID}}
# - name: Comment on the PR about the result
# uses: github-actions-up-and-running/pr-comment@v1.0.1
# with: