From: Marc Foley Date: Wed, 9 Apr 2025 08:54:32 +0000 (+0100) Subject: run.py only run if fonts found X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9282%2Fhead;p=thirdparty%2Fgoogle%2Ffonts.git run.py only run if fonts found --- diff --git a/.ci/run.py b/.ci/run.py index 3b95137c6..895bbb0b1 100644 --- a/.ci/run.py +++ b/.ci/run.py @@ -26,6 +26,9 @@ def main(): for directory, check_type in directory_check_types(args.branch): out = os.path.join("out", os.path.basename(directory)) fonts = glob(os.path.join(directory, "*.ttf")) + if not fonts: + print(f"Skipping {directory} because no fonts were found") + continue qa_cmd_prefix = ["gftools", "qa", "-f"] + fonts + ["-o", out] if args.pr_number: