]> git.ipfire.org Git - thirdparty/google/fonts.git/commitdiff
run.py only run if fonts found 9282/head
authorMarc Foley <m.foley.88@gmail.com>
Wed, 9 Apr 2025 08:54:32 +0000 (09:54 +0100)
committerMarc Foley <m.foley.88@gmail.com>
Wed, 9 Apr 2025 08:59:07 +0000 (09:59 +0100)
.ci/run.py

index 3b95137c685f1258d3636b7d6c0783da3101cb51..895bbb0b1b08e3cb7dbf0781ffcbed063e68afb2 100644 (file)
@@ -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: