ci: exit with non zero exit code when a build fails (#231)

This commit is contained in:
nullishamy
2024-05-24 20:04:15 +01:00
committed by GitHub
parent 495589d9f8
commit 327d02c0ec

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)