Skip to content

Commit af5c662

Browse files
committed
Strip -rc suffix from webhook version.
1 parent a3cb669 commit af5c662

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

release-maintenance.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,10 @@ main() {
344344
update_matrix "$adapter_file_zh" "\/\/ DO NOT EDIT THIS LINE, REQUIRED BY RELEASE SCRIPT\." "$adapter_row"
345345

346346
# Update rancher-webhook.adoc
347+
local webhook_version_clean="${WEBHOOK_VERSION##*up}"
348+
webhook_version_clean="${webhook_version_clean%%-rc*}"
347349
local webhook_row
348-
webhook_row="| ${VERSION}"$'\n'"| v${WEBHOOK_VERSION##*up}"$'\n'"| ${webhook_prime_mark}"$'\n'"| ${webhook_community_mark}"$'\n'
350+
webhook_row="| ${VERSION}"$'\n'"| v${webhook_version_clean}"$'\n'"| ${webhook_prime_mark}"$'\n'"| ${webhook_community_mark}"$'\n'
349351
# The marker is different here, it's a comment
350352
update_matrix "$webhook_file_en" "\/\/ DO NOT EDIT THIS LINE, REQUIRED BY RELEASE SCRIPT\." "$webhook_row"
351353
update_matrix "$webhook_file_zh" "\/\/ DO NOT EDIT THIS LINE, REQUIRED BY RELEASE SCRIPT\." "$webhook_row"

0 commit comments

Comments
 (0)