mirror of
https://github.com/konpa/devicon.git
synced 2025-08-13 10:04:24 +02:00
Add checks for when there are no files to commit. Also fix a bug with auto-commit-action in workflow
This commit is contained in:
6
.github/scripts/icomoon_upload.py
vendored
6
.github/scripts/icomoon_upload.py
vendored
@@ -37,11 +37,15 @@ def main():
|
||||
|
||||
args = parser.parse_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
|
||||
|
||||
runner = SeleniumRunner(args.icomoon_json_path, args.download_path,
|
||||
args.geckodriver_path, args.headless)
|
||||
runner.upload_icomoon()
|
||||
|
||||
new_icons = filehandler.find_new_icons(args.devicon_json_path, args.icomoon_json_path)
|
||||
svgs = filehandler.get_svgs_paths(new_icons, args.icons_folder_path)
|
||||
runner.upload_svgs(svgs)
|
||||
|
||||
|
Reference in New Issue
Block a user