skip json and brew update if this is a non-standard release

pull/5263/head
Thomas Stromberg 2019-09-04 15:02:34 -07:00
parent fe6527f8d5
commit 3fe41c6cf3
2 changed files with 10 additions and 0 deletions

View File

@ -29,6 +29,11 @@ readonly NEW_SHA256=$(awk '{ print $1 }' "${REPO_DIR}/out/minikube-darwin-amd64.
readonly BUILD_DIR=$(mktemp -d)
readonly GITHUB_USER="minikube-bot"
if ! [[ "${VERSION_BUILD}" =~ ^[0-9]+$ ]]; then
echo "NOTE: ${NEW_VERSION} appears to be a non-standard release, not updating releases.json"
exit 0
fi
if [ -z "${NEW_SHA256}" ]; then
echo "SHA256 is empty :("
exit 1

View File

@ -30,6 +30,11 @@ export DARWIN_SHA256=$(cat out/minikube-darwin-amd64.sha256)
export LINUX_SHA256=$(cat out/minikube-linux-amd64.sha256)
export WINDOWS_SHA256=$(cat out/minikube-windows-amd64.exe.sha256)
if ! [[ "${VERSION_BUILD}" =~ ^[0-9]+$ ]]; then
echo "NOTE: ${TAGNAME} appears to be a non-standard release, not updating releases.json"
exit 0
fi
# Update releases.json w/ new release in gcs and github
git config user.name "minikube-bot"
git config user.email "minikube-bot@google.com"