From b3ce41c2fde7da6956885122a583b4025e73d650 Mon Sep 17 00:00:00 2001 From: "Vipul Gupta (@vipulgupta2048)" Date: Wed, 14 Aug 2024 19:35:43 +0530 Subject: [PATCH] patch: Exit 1 if docusaurus build fails Signed-off-by: Vipul Gupta (@vipulgupta2048) --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 467cfc0..4a54ab7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -11,5 +11,9 @@ else . /app/docusaurusify.sh $1 $2 $3 $4 cd /app npx docusaurus build + if [ $? -ne 0 ]; then + echo "An error during docusaurus build. Exiting with status code 1." + exit 1 + fi cp -rf /app/build /github/workspace fi