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