mirror of
https://github.com/konpa/devicon.git
synced 2025-08-10 16:45:54 +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)
|
||||
|
||||
|
1
.github/workflows/build_icons.yml
vendored
1
.github/workflows/build_icons.yml
vendored
@@ -23,3 +23,4 @@ jobs:
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: Built new icons, icomoon.json and devicon.css
|
||||
branch: build-integrate
|
||||
|
Reference in New Issue
Block a user