ci: exit with non zero exit code when a build fails

This commit is contained in:
nullishamy
2024-05-24 19:57:29 +01:00
parent 495589d9f8
commit 9056ff2be8

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env python3 #!/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 dataclasses import dataclass
from typing import Any, Literal, List from typing import Any, Literal, List
@@ -654,3 +654,4 @@ try:
main() main()
except Exception as e: except Exception as e:
logger.error("Something went wrong when building the theme:", exc_info=e) logger.error("Something went wrong when building the theme:", exc_info=e)
sys.exit(1)