From a9085a80554477e340507237fca641be001c98bb Mon Sep 17 00:00:00 2001 From: Haowei Cai Date: Sun, 24 Oct 2021 20:57:09 -0700 Subject: [PATCH] Skip unnecessary changelog update. Update print message. --- scripts/release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index d19dc6a11..778e15628 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -180,12 +180,12 @@ git commit -am "update version constants for $CLIENT_VERSION release" # TODO(roycaihw): not all Kubernetes API changes modify the OpenAPI spec. # Download the patch and skip if the spec is not modified. Also we want to # look at other k/k sections like "deprecation" -util::changelog::update_release_api_version $CLIENT_VERSION $old_client_version $new_k8s_api_version release_notes=$(util::kube_changelog::get_api_changelog "$KUBERNETES_BRANCH" "$old_k8s_api_version") if [[ -n "$release_notes" ]]; then util::changelog::write_changelog v$CLIENT_VERSION "### API Change" "$release_notes" fi -git commit -am "update changelog" +git add . +git diff-index --quiet --cached HEAD || git commit -am "update changelog" # Re-generate the client scripts/update-client.sh @@ -210,4 +210,4 @@ git diff-index --quiet --cached HEAD || git commit -m "generated API change" git add . git commit -m "generated client change" -echo "Release finished successfully." +echo "Release finished successfully. Please create a PR from branch ${newbranchuniq}."