From 327d02c0ecf6cb0b5ff1cd90dae5fd5b9a0dda90 Mon Sep 17 00:00:00 2001 From: nullishamy Date: Fri, 24 May 2024 20:04:15 +0100 Subject: [PATCH] ci: exit with non zero exit code when a build fails (#231) --- build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index 515be5ea..42c1cf78 100755 --- a/build.py +++ b/build.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -import os, re, shutil, subprocess, argparse, glob, logging, zipfile +import os, re, shutil, subprocess, argparse, glob, logging, zipfile, sys from dataclasses import dataclass from typing import Any, Literal, List @@ -654,3 +654,4 @@ try: main() except Exception as e: logger.error("Something went wrong when building the theme:", exc_info=e) + sys.exit(1)