mirror of
https://github.com/konpa/devicon.git
synced 2025-08-11 17:14:27 +02:00
Create a monthly script that checks all svgs
This commit is contained in:
17
.github/scripts/build_assets/arg_getters.py
vendored
17
.github/scripts/build_assets/arg_getters.py
vendored
@@ -40,15 +40,22 @@ def get_selenium_runner_args(peek_mode=False):
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def get_check_svgs_args():
|
||||
def get_check_svgs_on_pr_args():
|
||||
"""
|
||||
Get the commandline arguments for the chec_svgs.py.
|
||||
Get the commandline arguments for the check_svgs_on_pr.py.
|
||||
"""
|
||||
parser = ArgumentParser(description="Check the SVGs to ensure their attributes are correct.")
|
||||
parser.add_argument("icomoon_json_path",
|
||||
help="The path to the icomoon.json aka the selection.json created by Icomoon",
|
||||
parser = ArgumentParser(description="Check the SVGs to ensure their attributes are correct. Run whenever a PR is opened")
|
||||
parser.add_argument("files_changed_json_path",
|
||||
help="The path to the files.json created by the gh-action-get-changed-files@2.1.4",
|
||||
action=PathResolverAction)
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def get_check_svgs_monthly_args():
|
||||
"""
|
||||
Get the commandline arguments for the check_svgs_monthly.py.
|
||||
"""
|
||||
parser = ArgumentParser(description="Check the SVGs to ensure their attributes are correct. Run monthly.")
|
||||
parser.add_argument("devicon_json_path",
|
||||
help="The path to the devicon.json",
|
||||
action=PathResolverAction)
|
||||
|
Reference in New Issue
Block a user