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:
6
.github/scripts/icomoon_peek.py
vendored
6
.github/scripts/icomoon_peek.py
vendored
@@ -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")
|
||||
|
6
.github/workflows/peek_icons.yml
vendored
6
.github/workflows/peek_icons.yml
vendored
@@ -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:
|
||||
|
Reference in New Issue
Block a user