Skip to content

Commit a9085a8

Browse files
committed
Skip unnecessary changelog update. Update print message.
1 parent 606b64e commit a9085a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ git commit -am "update version constants for $CLIENT_VERSION release"
180180
# TODO(roycaihw): not all Kubernetes API changes modify the OpenAPI spec.
181181
# Download the patch and skip if the spec is not modified. Also we want to
182182
# look at other k/k sections like "deprecation"
183-
util::changelog::update_release_api_version $CLIENT_VERSION $old_client_version $new_k8s_api_version
184183
release_notes=$(util::kube_changelog::get_api_changelog "$KUBERNETES_BRANCH" "$old_k8s_api_version")
185184
if [[ -n "$release_notes" ]]; then
186185
util::changelog::write_changelog v$CLIENT_VERSION "### API Change" "$release_notes"
187186
fi
188-
git commit -am "update changelog"
187+
git add .
188+
git diff-index --quiet --cached HEAD || git commit -am "update changelog"
189189

190190
# Re-generate the client
191191
scripts/update-client.sh
@@ -210,4 +210,4 @@ git diff-index --quiet --cached HEAD || git commit -m "generated API change"
210210
git add .
211211
git commit -m "generated client change"
212212

213-
echo "Release finished successfully."
213+
echo "Release finished successfully. Please create a PR from branch ${newbranchuniq}."

0 commit comments

Comments
 (0)