mirror of
https://github.com/konpa/devicon.git
synced 2025-08-16 19:44:05 +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():
|
def main():
|
||||||
args = util.get_commandline_args()
|
args = util.get_commandline_args()
|
||||||
new_icons = filehandler.find_new_icons(args.devicon_json_path, args.icomoon_json_path)
|
new_icons = filehandler.find_new_icons(args.devicon_json_path, args.icomoon_json_path)
|
||||||
if len(new_icons) == 0:
|
# if len(new_icons) == 0:
|
||||||
print("No files need to be uploaded. Ending script...")
|
# print("No files need to be uploaded. Ending script...")
|
||||||
return
|
# return
|
||||||
|
|
||||||
# print list of new icons
|
# print list of new icons
|
||||||
print("List of new icons:", *new_icons, sep = "\n")
|
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
|
name: geckodriver-log
|
||||||
path: ./geckodriver.log
|
path: ./geckodriver.log
|
||||||
- name: Upload screenshot of the newly made icons
|
- name: Upload screenshot of the newly made icons
|
||||||
uses: actions/upload-artifact@v2
|
uses: Thomas-Boi/public-upload-to-imgur@v1
|
||||||
if: ${{success()}}
|
if: ${{success()}}
|
||||||
with:
|
with:
|
||||||
name: new_icons
|
img_path: ./new_icons.png
|
||||||
path: ./new_icons.png
|
client_id: ${{secrets.IMGUR_CLIENT_ID}}
|
||||||
# - name: Comment on the PR about the result
|
# - name: Comment on the PR about the result
|
||||||
# uses: github-actions-up-and-running/pr-comment@v1.0.1
|
# uses: github-actions-up-and-running/pr-comment@v1.0.1
|
||||||
# with:
|
# with:
|
||||||
|
Reference in New Issue
Block a user