Skip to content

Commit

Permalink
Merge branch 'master' into update-docs-algolia
Browse files Browse the repository at this point in the history
  • Loading branch information
rasabot authored Oct 16, 2020
2 parents 2ab2eac + b74585a commit fea9ea4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/push_docs_to_branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ fi
# clone the $DOCS_BRANCH in a temp directory
git clone --depth=1 --branch=$DOCS_BRANCH git@github.com:$GITHUB_REPOSITORY.git $TMP_DOCS_FOLDER

if [ ! -z "$NEW_VERSION" ] && [ -d "$TMP_DOCS_FOLDER/docs/versioned_docs/version-$NEW_VERSION/" ]
then
echo "Trying to create a new docs version, but the folder already exist. Updating the $NEW_VERSION version instead..."
EXISTING_VERSION=$NEW_VERSION
fi

if [ ! -z "$EXISTING_VERSION" ]
then
echo "Updating docs for existing version $EXISTING_VERSION..."
Expand Down

0 comments on commit fea9ea4

Please sign in to comment.