未验证 提交 a24356cc 编写于 作者: T Thomas Strömberg 提交者: GitHub

Merge pull request #5263 from tstromberg/beta

skip json and brew update if this is a non-standard release
......@@ -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
......
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册