Skip to content

Commit

Permalink
Merge pull request #5411 from tstromberg/release_script
Browse files Browse the repository at this point in the history
Fix RELEASE_FLAGS undefined bug, add survey callout
  • Loading branch information
tstromberg authored Sep 19, 2019
2 parents 5daff4f + 86617fb commit 7969c25
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hack/jenkins/release_github_page.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,19 @@ readonly GITHUB_ORGANIZATION="kubernetes"
readonly GITHUB_REPO="minikube"
readonly PROJECT_NAME="${GITHUB_REPO}"

# Pre-release
RELEASE_FLAGS=""
if ! [[ ${VERSION_BUILD} =~ ^[0-9]+$ ]]; then
RELEASE_FLAGS="-p"
RELEASE_FLAGS="-p" # Pre-release
fi

RELEASE_NOTES=$(perl -e "\$p=0; while(<>) { if(/^## Version ${VERSION} -/) { \$p=1 } elsif (/^##/) { \$p=0 }; if (\$p) { print }}" < CHANGELOG.md)
if [[ "${RELEASE_NOTES}" = "" ]]; then
RELEASE_NOTES="(missing for ${VERSION})"
fi

readonly DESCRIPTION="## Release Notes
readonly DESCRIPTION="📣😀 **Please fill out our [fast 5-question survey](https://forms.gle/Gg3hG5ZySw8c1C24A)** so that we can learn how & why you use minikube, and what improvements we should make. Thank you! 💃🎉
## Release Notes
${RELEASE_NOTES}
Expand Down

0 comments on commit 7969c25

Please sign in to comment.