Skip to content

Commit

Permalink
patch: Exit 1 if docusaurus build fails
Browse files Browse the repository at this point in the history
Signed-off-by: Vipul Gupta (@vipulgupta2048) <[email protected]>
  • Loading branch information
vipulgupta2048 committed Aug 14, 2024
1 parent 9c37b68 commit b3ce41c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b3ce41c

Please sign in to comment.