Skip to content

Commit

Permalink
fix(CI): Fix build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbo2002 committed Nov 15, 2020
1 parent 54f6e28 commit 16088cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/usr/bin/env bash

echo "########################"
echo "# build.sh"
echo "# Branch = ${BRANCH}"
echo "########################"

npx tsc

if [ $BRANCH != "develop" ] && [ $BRANCH != "main" ]; then
if [ "$BRANCH" != "develop" ] && [ "$BRANCH" != "main" ]; then
echo "Skip documentation as branch is not develop and not main (is: ${BRANCH}).";
exit 0;
fi;
Expand Down

0 comments on commit 16088cf

Please sign in to comment.