Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment out generate-docs on new branches. #507

Merged
merged 1 commit into from
Jan 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions anago
Original file line number Diff line number Diff line change
Expand Up @@ -609,17 +609,18 @@ prepare_tree () {
beta*) rev_openapi_versions $label || return 1 ;;
esac

# COMMENTING OUT FOR NOW AS THE WAY FORWARD IS NOT CLEAR
# generate docs on new branches (from master) only
# If the entirety of this session is based on a branch from master
# (PARENT_BRANCH), and this iteration of prepare_tree() is operating on
# the NON-master branch itself, versionize the docs
if [[ "$PARENT_BRANCH" == "master" && "$branch" != "master" ]]; then
logecho -n "Generating docs for ${RELEASE_VERSION[$label]}: "
logrun -s $TREE_ROOT/hack/generate-docs.sh || return 1
logecho -n "Committing: "
logrun -s git commit -am \
"Generating docs for ${RELEASE_VERSION[$label]} on $branch."
fi
#if [[ "$PARENT_BRANCH" == "master" && "$branch" != "master" ]]; then
# logecho -n "Generating docs for ${RELEASE_VERSION[$label]}: "
# logrun -s $TREE_ROOT/hack/generate-docs.sh || return 1
# logecho -n "Committing: "
# logrun -s git commit -am \
# "Generating docs for ${RELEASE_VERSION[$label]} on $branch."
#fi

git_tag $label $branch
}
Expand Down